Search found 14 matches

by pomfret
Sat Apr 18, 2009 2:41 pm
Forum: CMSMS Core
Topic: [SOLVED] PHP Include help
Replies: 4
Views: 2687

Re: PHP Include help

Try:

Code: Select all

include('/home/stranget/public_html/feedback/view.php');
If that works, you should be able to change it to:

Code: Select all

include($_SERVER['DOCUMENT_ROOT'].'/feedback/view.php');
Which will help if your home public_html directory ever changes.

Brian
by pomfret
Thu Apr 16, 2009 5:01 pm
Forum: CMSMS Core
Topic: Determine site hierarchy level of current page
Replies: 3
Views: 1594

Re: Determine site hierarchy level of current page

OK.  So, I went the UDT route and seem to be in good shape.  I'd still be interested in hearing if there's an easier way to go about all this: My UDT (get_page_position): global $gCms; $hierarchy = count(explode(".", $gCms->variables['friendly_position'])); $smarty->assign('page_level', $h...
by pomfret
Thu Apr 16, 2009 1:10 pm
Forum: Tips and Tricks
Topic: [info] mod_rewrite (pretty urls), fastcgi & 500 errors on 404 requests
Replies: 3
Views: 2712

Re: [info] mod_rewrite (pretty urls), fastcgi & 500 errors on 404 requests

Greetings Pierre, Seeing as this is a very case-specific issue, I decided to just report my findings to the forum with the hopes of helping anyone else that runs into a similar situation. I rather not bother the devs with something that's not confirmed as a bug (I guess this depends on what position...
by pomfret
Thu Apr 16, 2009 12:55 pm
Forum: CMSMS Core
Topic: Determine site hierarchy level of current page
Replies: 3
Views: 1594

Re: Determine site hierarchy level of current page

Do you mean the $node->depth -- Depth (level) of this node in the current menu parameter that is in the MenuManager to check its level? Ronny I tried all the MenuManager options.  However, since the navigation is split across separate menu calls, MenuManager does seem to think anything is more than...
by pomfret
Thu Apr 16, 2009 2:00 am
Forum: CMSMS Core
Topic: Determine site hierarchy level of current page
Replies: 3
Views: 1594

Determine site hierarchy level of current page

Can someone explain how I go about determining if the current page's hierarchy level >=3?

I'm trying to add a secondary subtitle to pages that are 3 levels or deeper in the site page structure.

Thanks,

Brian
by pomfret
Tue Apr 14, 2009 4:33 pm
Forum: CMSMS Core
Topic: [solved] CMSms internal custom 404 message - no template wrapper?
Replies: 3
Views: 1543

Re: CMSms internal custom 404 message - no template wrapper?

egads! *facepalm*

Apologies for the utter lack of ability to comprehend the words on my screen sometimes.

Thanks again for the quick response.

Brian
by pomfret
Tue Apr 14, 2009 4:01 pm
Forum: CMSMS Core
Topic: [solved] CMSms internal custom 404 message - no template wrapper?
Replies: 3
Views: 1543

[solved] CMSms internal custom 404 message - no template wrapper?

Is the normal behavior of the CMSms internal "Custom 404 Error Message" to return said content without a template wrapper? After taking care of external 404 redirects via my htaccess to a custom CMSms page, I enabled the above feature.  Now, when CMSms tries to handle an internal 404, all ...
by pomfret
Tue Apr 14, 2009 3:40 pm
Forum: Tips and Tricks
Topic: [info] mod_rewrite (pretty urls), fastcgi & 500 errors on 404 requests
Replies: 3
Views: 2712

[info] mod_rewrite (pretty urls), fastcgi & 500 errors on 404 requests

Throwing this out there in case someone else is using a similar setup and experiencing issues with 500 errors on 404 requests when using mod_rewrite for pretty URLs and a fastcgi based PHP setup.  Note that this only happens when the requested url bypasses the .htaccess 404 redirect (due to rewrite ...
by pomfret
Mon Apr 13, 2009 7:31 pm
Forum: CMSMS Core
Topic: [solved] Separate submenus with parent link as menu header
Replies: 4
Views: 2289

Re: [solved] Separate submenus with parent link as menu header

FYI, I was missing an important piece of logic...  If you clicked on the "Where to stay" menu item in my example, the title of my sidebar menu turned out to be that of the 1st level menu item.  Clicking on any of the children in the sidebar menu produced the expected menu title. As a work-...
by pomfret
Mon Apr 13, 2009 6:19 pm
Forum: CMSMS Core
Topic: [solved] Separate submenus with parent link as menu header
Replies: 4
Views: 2289

Re: Separate submenus with parent link as menu header

Absolutely wonderful!! I thought I remembered seeing such functionality, but couldn't recall the module that provided it (the phrase "SimpleSmarty" even popped into my mind, forgot about the cg prefix). {$cgsimple->get_page_title($cgsimple->get_parent_alias(),'')} worked a treat. Thanks a ...
by pomfret
Mon Apr 13, 2009 12:59 pm
Forum: CMSMS Core
Topic: [solved] Separate submenus with parent link as menu header
Replies: 4
Views: 2289

[solved] Separate submenus with parent link as menu header

I've been digging around over the weekend and just can seem to accomplish this task.  Any help will be greatly appreciated. I have a horizontal menu that contains four primary parent items and children items of up to two levels deep.  This horizontal menu only shows the first level of child links.  ...
by pomfret
Fri Jan 09, 2009 11:46 pm
Forum: Modules/Add-Ons
Topic: [new module] MoreMenus
Replies: 4
Views: 1646

Re: [new module] MoreMenus

Much appreciate for the quick response.

Install and initial tests indicate it's working as intended.  Thanks a bunch!

Brian
by pomfret
Fri Jan 09, 2009 6:56 pm
Forum: Modules/Add-Ons
Topic: [new module] MoreMenus
Replies: 4
Views: 1646

Re: [new module] MoreMenus

Any progress on this module?  Unfortunately, it doesn't want to let me add menus.  Apart from the inability to read some of the native language texts (I  have a good idea of what they mean, so it's not that much of an issue), adding a new menu does nothing but return me to the same page of adding a ...
by pomfret
Wed Dec 31, 2008 7:36 pm
Forum: General Discussion
Topic: Restrict creation of page to a sub hierarchy
Replies: 1
Views: 1187

Re: Restrict creation of page to a sub hierarchy

We are also trying to determine if CMSMS provides for the capability to restrict "new page" content to a designated, existing content structure on a per-user or per-group basis.  This would be for a site that is to be maintained by an organization with multiple "departments" if y...

Go to advanced search