Custom pages redirect to index

Forum
Last Post
Threads / Messages

Vaporman87

Member
Member
Joined
Feb 14, 2014
Messages
32
Points
0
Mysidian Dollar
3,037
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?
 
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:
 
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
 
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 is what you wanted, right?
 
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"
 
Last edited:
The link squiggler posted shows the proper content and title for me (as a visitor), not the index one
 
Your right IntoRain. I edited my previous comment to reflect what squiggler mentioned.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Top