|
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? |
how to create tags automatically while posting in publisher?
and how to add generate releted posts under the publisher section? |
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)?> |
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... |
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> |
| |||
| |||