|
|
Forum moderator: bigblog |
uCoz Community Communication uCoz Discussions Curent page number |
Curent page number |
I don't understand why uCoz offers $CURRENT_PAGE$ code inside a span?
In this way i can't use it in my meta title, and all pages with entries have the same name! |
Mar1aN, if you want to set unique meta tags for each entry, you can do this with the help of additional fields. E.g. enable two additional fields, one for keywords and one for description, and then use the following code in the templates:
Code <meta name="description" content="$OTHER1$" /> <meta name="keywords" content="$OTHER2$" /> I'm not active on the forum anymore. Please contact other forum staff.
|
Sunny, i want the curent page number from a module main page (/load/0-2).
|
VZ,
Quote substr(S,N1,N2) substr(S,N1) It returns a substring from string S, starting from position N1 (the first character has position 0), of the length equal to N2 characters. Parameter S must be specified as a string (or as a result of calling a function that returns a string). N1 and N2 are reduced to integer values. If N2 is not specified then a substring from position N1 to the end of string S is returned. If N1 is negative then the initial position is counted from the end of string S. If N2 is negative then it sets the final position from the end of string S. (<?substr('Hello',2)?> will return 'llo', <?substr('Hello',2,2)?> will return 'l', <?substr('Hello',-2)?> will return 'lo', <?substr('Hello',0,-2)?> will return 'Hel'). This is from the info on conditional operators, available in Control Panel under each template. I'm not active on the forum anymore. Please contact other forum staff.
|
its -2 so it adds 1 in order to return three characters? I tried to mess around with it i had no good results. Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them. Post edited by VZ - Saturday, 2014-05-17, 6:06 PM
|
| |||
| |||