XenForo community

x4rl
x4rl
It was just an example there will be nothing in the acp it should just show you the code for a blank page
Ryan Kent
Ryan Kent
ok, so how can I see the blank page? I tried /blankpage and that didn't work. Do I add a blankpage.html file and then it works?
x4rl
x4rl
I checked your site after you posted this and it was working right
the tab was there and clicked worked
Ryan Kent
Ryan Kent
wow! very nice! Ok so questions if you don't mind:
- how do I add content to the page? Add a "blank" template?
- if I have a page called "blank.html", is it possible to set up a route which will go to "blank.html" as opposed to just "blank"?
x4rl
x4rl
Am of to bed right now close to 3am I'll reply tomorrow sorry (misses will kill me)
Ryan Kent
Ryan Kent
np, ty for the huge help
x4rl
x4rl
Right morning what you after doing :)
Ryan Kent
Ryan Kent
I did my best but...I have no idea what you just said :)
x4rl
x4rl
I just said "morning" and what are you after doing with this blank page?
Ryan Kent
Ryan Kent
I see "blank" in the nav bar. I need to remove it. There is not room for all the pages.

I need to change the name from "blank" to the name of the page. For example I have a "photos" page.
I need to be able to keep the existing path to the page after XF is installed. The current path is /photos.php. If a link exists to /photos.php it needs to still work. All new links will go to /photos.
x4rl
x4rl
uninstall it replace all "blank" and "Blank" with photos / Photos in all the files, To remove the tab uncheck it in code event listeners (it will be called "navigation_tabs) check in it to make sure its blank one.
Ryan Kent
Ryan Kent
so if there is an existing site with 100+ pages, this would need to be done 100+ times? Changing the code and installed 100+ add-ons?
x4rl
x4rl
depends on how them 100 pages are if there part of the same page "like this page +1" than no if there single on there own pages than yea I guess (or extend this "alot")
Ryan Kent
Ryan Kent
I have it set up and working with photos. Next step is I need it to bring up the photos.php page, or to provide a template where I can add the code to for the photos page
x4rl
x4rl
You would need to "add a template" to the php file.
Ryan Kent
Ryan Kent
Sorry to keep asking questions but I am stuck otherwise.

Which php file? and could you share the code to add a template?
x4rl
x4rl
Oh I already added it

return $this->responseView('Oracle_ViewPublic_Blank', 'Blank');

Make a template called "Blank" or if you have change this line name the template to that (its the end part of that code "'Blank'"
Ryan Kent
Ryan Kent
Fantastic! 1000 thanks!

imo you should publish that as an add-on. I would be happy to use my site as a demo once it is done being built.
x4rl
x4rl
Your welcome and you can if you like :)
Top Bottom