View Full Version : Custom pages redirect to index
Vaporman87
02-21-2014, 11:52 AM
I tested making a custom page using the ACP, but when I click on the link in the navigation menu, I am just shown the Main index page (but the URL shows the correct path in the browser, not the path to the Main page).
Help?
Vaporman87
02-21-2014, 04:07 PM
This is making zero sense to me. Nothing I can find give me any more understanding of how or why my created pages in the ACP are showing only the content of the index/main page, while still showing the proper path to the created page in the browser. Nothing in the database under links or under content looks out of the ordinary, or any different than what you see with other content pages.
Frustrating...:madO:
IntoRain
02-21-2014, 04:53 PM
Never had this happen to me... If everything's good on the database side, did you change anything in the page.php and pageview.php files?
If the custom pages/view/page doesn't work, you can also create pages anyway by adding .php files following the same scheme HoF uses (controller in main folder, view in the view folder, same functions in both files, index() function to show the page, construct on the controller, create the $document = $this->document and add a title to it in the view). You can follow for example what myadopts.php and myadoptsview.php look like
squiggler
02-21-2014, 06:39 PM
Since you created it in the ACP, the URL won't just be site.com/link
It will be site.com/pages/view/LINK
That's what you have to link to when editing the links. This (http://retro-daze.org/DigiChars/pages/view/elric) is what you wanted, right?
Vaporman87
02-21-2014, 06:45 PM
That's it squiggler!
Is it normal for the user to have to enter pages/view/custom into the URL area when creating a page? If so, this should probably be mentioned to the user somewhere in the page creation section.
That is to say, instead of this:
"Pages will appear at:
http://retro-daze.org/DigiChars/pages/view/pageurl"
It should say this:
"Page URLs entered here should be in this format: /pages/view/custom page name"
IntoRain
02-21-2014, 06:50 PM
The link squiggler posted shows the proper content and title for me (as a visitor), not the index one
Vaporman87
02-21-2014, 06:57 PM
Your right IntoRain. I edited my previous comment to reflect what squiggler mentioned.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.