Long URLs, generating and parsing

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
genepilot
Forum Members
Forum Members
Posts: 18
Joined: Wed Feb 27, 2008 4:42 pm

Long URLs, generating and parsing

Post by genepilot »

I want to use long urls (search engine friendly) of a form like:

http://www.mysite.com/category/subcateg ... yPage.html

I'm using mod_rewrite.

Can somebody point me in the right direction to figure out how to both generate these long urls and getting the system to allow them?

Thanks!
Brett
Pierre M.

Re: Long URLs, generating and parsing

Post by Pierre M. »

Hello Brett,
genepilot wrote: I want to use long urls (search engine friendly) (...) like:

http://www.mysite.com/category/subcateg ... yPage.html

(...)

Can somebody point me in the right direction to figure out how to both generate these long urls and getting the system to allow them?
Seems you have missed the links at the end of the installation manual...

Pierre M.
genepilot
Forum Members
Forum Members
Posts: 18
Joined: Wed Feb 27, 2008 4:42 pm

Re: Long URLs, generating and parsing

Post by genepilot »

Hi Pierre,

Sorry about the long delay in replying, I was off on another demanding project.

I can't seem to find the 'installation manual'.  Could you point me in the right direction?

I spent a some time trying to hunt down this information before and found myself going in circles.  I know that what I want to do is being done but I couldn't find anything would help me avoid reverse-engineering the code to really understand what was going on.

Thanks,
Brett
Pierre M. wrote: Hello Brett,


Seems you have missed the links at the end of the installation manual...

Pierre M.
Pierre M.

Re: Long URLs, generating and parsing

Post by Pierre M. »

How can't you find the installation manual in the documentation ?

Pierre M.
genepilot
Forum Members
Forum Members
Posts: 18
Joined: Wed Feb 27, 2008 4:42 pm

Re: Long URLs, generating and parsing

Post by genepilot »

Pierre M. wrote: How can't you find the installation manual in the documentation ?

Pierre M.
I'm afraid that what you are referring to isn't as apparent to some others as it is to you.

I looked in the sections that could be interpreted as being the 'installation manual' and did not find any documentation referring to the parsing and creation of the long urls that I was looking for.

Either you mis-interpreted what I was looking for or the manual that you speak of isn't as easy to find for a non-insider as you think.

Could you please just point me in the right direction instead of trying to say how stupid I am?
genepilot
Forum Members
Forum Members
Posts: 18
Joined: Wed Feb 27, 2008 4:42 pm

Re: Long URLs, generating and parsing

Post by genepilot »

No really, there is no documentation there for interpreting/creating  deep urls.

As a reminder, here is what I have in mind:

http://www.mysite.com/category/subcateg ... yPage.html

Figuring out mod_rewrite and generating urls that ended in .html was child's play.  What I want to do is currently being done in the news module but I can't find anything beyond examples and I'd rather find an explanation rather than reverse-engineering the whole thing.

Thanks,
Brett
Pierre M.

Re: Long URLs, generating and parsing

Post by Pierre M. »

Hello again,

following nuno's hint I can access the sample content on a fresh 1.2.4 install the way your are looking for :
/cmsms-1.2.4/extensions/modules/search.html (this is a 3 level deep example)

Could you be missing the hierarchy parameter ? ($config['use_hierarchy'] = true; in config.php according to the manual)

Pierre M.
Post Reply

Return to “Developers Discussion”