Ez-pages question and best solution
[FONT=Times New Roman]I have been creating new sideboxes for a couple of different clients and it seems that ez-pages comes in quite handy (thanks development staff
) however, each time I use it, I seem to do (or need to do) something different than the last.
Here is my current problem...
I have a new side box that I am supposed to be able to add the desired content to (btw these came from the blank sidebox download). So here is my template code.
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
// Replace the text and HTML tags between the apostophes on lines 19 and 20.
// Use as many or as few lines using this model as you need for your custom content.
// If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
// If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
//$content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';
$content .= '<?php echo zen_ez_pages_link(page 1, chapter number, page is SSL false, open new window false, return full url true); ?>';
$content .= '</div>';
?>
And the ezpages part I got from the tuturial How can I program a link to an EZ-Page? (which I believe there is a typo.) Here is what the code states:
<php echo zen_ez_pages_link(page ID, chapter number, page is SSL [true/false], open new window [true/false], return full url [true/false]); ?>
Isn't there supposed to be a ? before php in the beginning? Also can someone please post a reply as to how you are supposed to fill out the parameters? Is this method outdated with version 1.3.8?
Or would this method be easier (according to [/FONT][FONT=Times New Roman]includes/functions/functions_ezpages.php)[/FONT][FONT=Times New Roman] and how would I go about adding the code to my above tpl file?
Line #16 : // to use this link add '<a href="' . zen_ez_pages_link($pages_id) . '"></a>';
I just want the fastest and easiest solution to add any ez-page to any sidebox I wish.
tia...
0be1
[/FONT]
"Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley