Links url - page number and page alias

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
fredt
Forum Members
Forum Members
Posts: 144
Joined: Mon Jun 27, 2005 10:36 am

Links url - page number and page alias

Post by fredt »

In my pages, some links are generated by the fckeditor "Palmtree" plugin as "/index.php?page=40" and others as "/index.php?page=news" ? (cmsms 0.11.2)? Can I mass or hand-edit them to get the cleaner "page=mypage" syntax (I suspect google will prefer those...) ?

[Edit, march 21 : please help - Fred !!!]
Last edited by fredt on Tue Mar 21, 2006 1:29 pm, edited 1 time in total.
Plugman

Re: Links url - page number and page alias

Post by Plugman »

Hi,

For informations, this is my first post !!!!  ;D

If you want to have the alias instead of the id in your cmsms link you need to go to :
modules/FCKeditorX/FCKeditor/editor/plugins/CMSContent/fck_cmscontent.php

And change this line :
echo "Id()."\">".$one->Hierarchy()." ".$one->Name()."";

for
echo "Alias()."\">".$one->Hierarchy()." ".$one->Name().""; 
to have page alias

or
echo "Name()."\">".$one->Hierarchy()." ".$one->Name().""; 
to have page name

Excuse me for my bad english but i'm a poor frenchy ^^

See ya !

Plug.
User avatar
fredt
Forum Members
Forum Members
Posts: 144
Joined: Mon Jun 27, 2005 10:36 am

Re: Links url - page number and page alias

Post by fredt »

French & private content follows
********
Et ça te fait rire... ;) Tu ne t'en sors pas mal, continue à poster des chouettes trucs comme ça !
Bienvenue à bord !
Fred
Post Reply

Return to “CMSMS Core”