Bug in URL for Section Headers (v1.9.2)

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
reto
Forum Members
Forum Members
Posts: 24
Joined: Sat Feb 18, 2006 3:35 pm

Bug in URL for Section Headers (v1.9.2)

Post by reto »

Hi,

I'm using Section Headers with pretty URLs in 1.9.2. I'm aiming for the following (URL-) structure:

Code: Select all

/page/section/sub-page
What I get is:

Code: Select all

/page/section-[number/ID]/sub-page
Besides, if you call just /page/section-[number/ID] without the page you get:

Code: Select all

string(51) "Smarty error: unable to read resource: "tpl_top:-1"" string(52) "Smarty error: unable to read resource: "tpl_head:-1"" string(52) "Smarty error: unable to read resource: "tpl_body:-1"
which is not ideal. This should IMO either be a redirect to the first child of a page section (301 Redirect) or a 404.

While the second issue is not that important to be solved, I see the first as a bug because I, for example, can't create URLs with the year as section-headers. It would give me /page/2009-1/sub-page, /page/2010-2/sub-page etc.

Or am I missing the option of defining the alias for a section header?

thanks,
Reto
reto
Forum Members
Forum Members
Posts: 24
Joined: Sat Feb 18, 2006 3:35 pm

Re: Bug in URL for Section Headers (v1.9.2)

Post by reto »

Ah, I see. My very specific problem is, that the alias cannot be a number. Well, that's a pitty. Editing the alias for section headers would still be nice. And the second issue still exists, of course.
mr.bacan

Re: Bug in URL for Section Headers (v1.9.2)

Post by mr.bacan »

reto wrote: Besides, if you call just /page/section-[number/ID] without the page you get:

Code: Select all

string(51) "Smarty error: unable to read resource: "tpl_top:-1"" string(52) "Smarty error: unable to read resource: "tpl_head:-1"" string(52) "Smarty error: unable to read resource: "tpl_body:-1"
I'm having this same problem. I'm using CMSMS v1.9.3
Thanks in advance for any advice on this.
reto
Forum Members
Forum Members
Posts: 24
Joined: Sat Feb 18, 2006 3:35 pm

Re: Bug in URL for Section Headers (v1.9.2)

Post by reto »

Sections cannot be linked at the moment. You may either substitute sections with real pages or manually link to the first child of the section.

I think this needs a fix, but didn't get a feedback so far.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Bug in URL for Section Headers (v1.9.2)

Post by Dr.CSS »

The work around for making aliases for section headers is to start with content type content, make alias then choose section header content type...
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: Bug in URL for Section Headers (v1.9.2)

Post by pixelita »

I'm seeing this on a dual-language site I'm working on, but it is only intermittently that this occurs. I'm using the module Babel and English and Chinese. I've set up section headers for English and Chinese and it seems to work fine and dandy, except every once in awhile it will choke and spit out this code:

Code: Select all

string(51) "Smarty error: unable to read resource: "tpl_top:-1"" string(52) "Smarty error: unable to read resource: "tpl_head:-1"" string(52) "Smarty error: unable to read resource: "tpl_body:-1"" 
If I navigate back to the domain itself, and click Chinese, it's fine. It seems to only happen when I'm flipping back and forth. I'll try that fix with the content you suggested and see if that solves it.
Submit your site to the We Love CMSMS showcase
Post Reply

Return to “CMSMS Core”