Re: Adding pages to blank sidebox
Well, I see this is an older thread, but thought I might add my nickels worth. Ya'll can double check me if you want.
https://www.thercrv.com - My blank sidebox is called Rants and Raves.
In the mod Blank_Sidebox it's actually pretty easy to add an EZ Page. I did mine this way:
Create your EZ Page in admin/Tools/EZ-Pages
Note the EZ-Pages ID in the top left
Select "Page is Visible"
Select No to Header, No to Sidebox, No to Footer
Add your content to the HTML Content box and save it.
Now,
(Everything is in the includes folder)
Copy all the files in the blank sidebox install package (There's only 3 total) with new names, leaving the native files just as they are for future sideboxes
Thus:
includes/languages/english/extra_definitions/blank_sidebox_defines.php
becomes
includes/languages/english/extra_definitions/yourword_sidebox_defines.php
(In this file customize your header just as stated in the instructions, AND change all occurrences of the word blank to yourword)
and
includes/modules/sideboxes/blank_sidebox.php
becomes
includes/modules/sideboxes/yourword_sidebox.php
(In this file, change all occurrences of the word blank to yourword)
and
includes/templates/template_default/sideboxes/tpl_blank_sidebox.php
becomes
includes/templates/template_default/sideboxes/tpl_yourword_sidebox.php
(In this file, insert a hyperlink with title and text in the content section like so:)
$content .= '<p>' . TEXT_YOURWORD_SIDEBOX . '</p>';
$content .= '<a href="https://www.yoursite.com/index.php?main_page=page&id=PAGEID# " title="Use Your Title Here" target="_blank">Use your text here</a>';
$content .= '</div>';
Move your new sidebox to your server by merging the includes folder with your install includes folder, you don't have to merge the native files if you don't want to. Your new sidebox and content is ready to go. Make sure you turn it on in admin/Tools/Layout Boxes Controller.
Cheers
Last edited by TheGrimReaper; 31 Jan 2021 at 09:22 AM.
Waiting to be Zenned - Over-thinking makes an easy task complicated.
Bookmarks