Page 1 of 11
uCoz Community » uCoz Modules » File Catalog, Site Catalog, Publisher, Ad Board, Online Games » how to create tags automatically while posting in publisher?
how to create tags automatically while posting in publisher?
Danishzaidi
Posts: 31
Reputation: 0
Message # 1 | 6:08 AM
how to create tags automatically while posting in publisher?

and how to add generate releted posts under the publisher section?
Jan
Posts: 301
Reputation: 19
Message # 2 | 6:31 AM
Danishzaidi, you will find your answer Here
Natashko
Posts: 3366
Reputation: 171
Message # 3 | 9:13 AM
Danishzaidi,
Quote (Danishzaidi)
and how to add generate releted posts under the publisher section?

If the tags of the entries are given, you may embed this code
Code
<?$RELATED_ENTRIES$(10)?>
to CP->Design->Design management (templates)->Page with entry full text and its comments. And links to similar entries will be created automatically. (10 - number of entries; similarity is determined by means of tags)
khen
Posts: 434
Reputation: 13
Message # 4 | 6:11 PM
Quote
how to create tags automatically while posting in publisher?


Copy and paste this code after the $BODY$ in the Entry adding/editing page of the Publisher Module:

<script type="text/javascript">
$(document).ready(function(){
$("form#addEntForm").submit(function(){
if ($('#suggEdit').val().match(/^\s*$/)) {
var entryname = $('#puF1').val();
entryname = entryname.split(' ').join(', ');
$("#suggEdit").val("" + entryname + "");
}});});
</script>

i hope it helps...

fadly
Posts: 45
Reputation: 0
Message # 5 | 10:22 AM
here the code,

Copy and paste this code after the $BODY$ in the Entry adding/editing page of the Module:

Code
<script type="text/javascript">
var result = [];
$('input[name="name1"], input[name="title"]').change(function() {
for (var i=0; i<$(this).val().split(' ').length; i++) {
if ($(this).val().split(' ')[i].length > 3) {
result[i] = String($(this).val().split(' ')[i]);
}
$('input[name*="tags"]').val('your tag example , ' + result);
}
while($('input[name*="tags"]').val().search(/,,/) != -1) {
$('input[name*="tags"]').val($('input[name*="tags"]').val().replace(/,,/m,',').replace(/^\,/,''));
}
});
</script>


tongue

uCoz Community » uCoz Modules » File Catalog, Site Catalog, Publisher, Ad Board, Online Games » how to create tags automatically while posting in publisher?
Page 1 of 11
Search: