Showing my simple site

Post links to sites running CMS in all its glory.
Post Reply
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Showing my simple site

Post by RonnyK »

Tigru,

I've seen the site passing by on the Dutch board. Nice new site.......

Some "small" remarks:

1. The site shows "Next page", this is coming from the relational links in the template. You should/could translate them there.
2. The Horizontal menu is to big to fit on a single line, it takes two lines. You might want to consider to put it in a vertical menu instead. Or use less menu-parents.
3. The search button is below the search-box. Change DIV#SEARCH to "width: 25em".


Ronny
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Showing my simple site

Post by tyman00 »

Tigru wrote: 1. Can't do it, tried it, but I do not really know where to change it.
I did a quick Find in Files (I used Crimson Editor, you should try it); here is what I found:

You will see two numbers inside of two parenthesis the first is the line number, the second is the character position.

Ex:  (Line#, CharacterPosition):

Code: Select all

\plugins\function.cms_selflink.php(135,21): 			$Next_label = "Next page: ";
\plugins\function.cms_selflink.php(154,21): 			$Next_label = "Next page: ";
\plugins\function.cms_selflink.php(162,19): 			$Next_label = "Next page: ";
You might want to change the Previous Page and Parent Page labels (just above and below the Next Page label) while you are at it.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Showing my simple site

Post by RonnyK »

You're right tyman00, but it is nicer to change the label in the calling of the selflink in the template (look for "relational links" in the template). For "Previous page" there is an example given in the template. The next-page can be done similar....

Ronny
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Showing my simple site

Post by tyman00 »

RonnyK wrote: You're right tyman00, but it is nicer to change the label in the calling of the selflink in the template (look for "relational links" in the template). For "Previous page" there is an example given in the template. The next-page can be done similar....

Ronny
Right you are!

Code: Select all

         <!-- Start relational links -->
	 <div class="hr"></div>
	 <div class="right49">
	 	<p>{anchor anchor='main' text='^ Top'}</p>
	 </div>
         <div class="left49">
            <p>{cms_selflink dir="previous" label="Previous page: "} <br />
            {cms_selflink dir="next"}</p>
         </div>
         <!-- The label parameter doesn't need to be there if you're using English, 
                  but is here to show how it's used if you don't want the English text "Previous page" -->
I removed the relational links from my template so I forgot that was even there.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Showing my simple site

Post by RonnyK »

For those interested, the cms_selflink-tag does take the lang-parameter. Dutch is included (nl). I checked the code yesterday as someone experienced problems with the cms_selflink.......
(optional) lang - Display link-labels ("Next Page"/"Previous Page") in different languages (0 for no label.)
Danish (dk), English (en) or French (fr), for now.
So label, can be used to set it yourself, but:

Code: Select all

case 'nl':
	$Prev_label = "Vorige pagina: ";
	$Next_label = "Volgende pagina: ";
	$Parent_label = "Bovenliggende pagina: "; // uplink
	break;
Ronny
Post Reply

Return to “CMS Show Off”