Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls

8 posts by 2 authors in: Forums > CMS Builder
Last Post: October 2, 2014   (RSS)

Hi everyone

I am getting the error "Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls" whenever I choose a menu item.

Basically, I created a category menu and placed it in an include file, which is called up on every page in the site.  Here is the include file "menu.inc"

<ul class="sf-menu">
<?php foreach ($menuRecords as $categoryRecord): ?>
<?php echo $categoryRecord['_listItemStart'] ?>

<?php if ($categoryRecord['_isSelected']): ?>
<b><a href="<?php echo $categoryRecord['_link'] ?>"><?php echo $categoryRecord['name'] ?></a></b>
<?php else: ?>
<a href="<?php echo $categoryRecord['_link'] ?>"><?php echo $categoryRecord['name'] ?></a>
<?php endif; ?>

<?php echo $categoryRecord['_listItemEnd'] ?>
<?php endforeach; ?>
</ul>

<?php if (!$selectedMenu): ?>
No category is selected!<br/>
<?php endif ?>

I am not exactly sure for which section editor I should be setting the viewer url.  Can anyone help?

NorthernPenguin

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Hey there

What's happening here is that the menu is trying to go to the individual category page, but the page doesn't exist yet. The section editor needs to know where to send the user when they click on the link, which is why it's asking you to set a detail page.

Do you have a page set up yet for the individual categories?

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Hi Claire:  didn't work.  The weird thing is that I have used this method on a number of web sites, and they always worked.  Not sure what i did differently!

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By claire - October 1, 2014

Is it possible that the file isn't in the root folder? If it's in a subfolder, it needs to have the path from the root added to the detail page URL.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Did that.  I have moved the code from my development server to the pre-production server, where I am getting a different problem.  Still working on it!

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Fixed it.  My Website root url was incorrect.  that also fixed the original error.

i do have one question.  I use two menus on my site (penguincondo.com/en/).  I get the error "no category is selected" whenever I choose a main menu item.  Any idea what would generate this email?

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By claire - October 2, 2014

Not sure about that one - I haven't seen that kind of error before.

Check and see where that exact error text appears in your viewer file. That should tell you which variable is missing at least.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/