Duplicate breadcrumbs in Multi-Language Support for EZ-Pages
Hi,
I don't know whether someone has already reported this, but here it goes anyway.
I found after having installed multilanguage_ezpages_1.3.0.5v2.01 the breadcrumbs in my EZ Pages were duplicating my last breadcrumb; for example: Home • Information • Information.
Being an astute follower of the 'Less is more' principle I decided that the last breadcrumb had to go.
Just go into includes\modules\pages\page\header_php.php and go to line #156.
Change:
$breadcrumb->add($var_pageDetails->fields['pages_title']);
to:
//$breadcrumb->add($var_pageDetails->fields['pages_title']);
and your EZ pages are clutter-free again :-)
Hopefully this saves someone the time it took me to figure this one out.
Regards,
Oculas
Re: Multi-Language Support for EZ-Pages
I've installed Zen-cart 1.3.8 and the Multi-Language Support for EZ-Pages module.
I had the same problem as above; on some ez-pages (not all) I had double breadcrumbs. I commented out the $breadcrumb-line as described by oculas and now it works fine.
But I still have a problem:
I have an ez-page link in the important information box to a content page wich works fine.
Another ez-page link in the footer with an internal link to the site map also works fine.
BUT the ez-page link in the footer to a content page doesn't work. It shows the link and title but the content on the webpage shows the word array. Although in the table the right content is inserted.
Does any one have a clue??
( I'm developing the site here http://85.92.129.70/~sgovers/index.php )
Re: Multi-Language Support for EZ-Pages
A correction of the last post: I don't have an ez-page link in the important information box. (It is a more information box not an ez-pages box)
So the ez-page link in the footer with an internal link to the site map works fine but the ez-page link to a content page doesn't work. It shows the link and title but the content on the webpage shows the word array. Although in the table the right content is inserted.
Re: Multi-Language Support for EZ-Pages
Quote:
Originally Posted by
a_berezin
Chapter error.
ezpages_bar_footer.php:
Find
Code:
// query modified for multi-language support
// $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_footer = 1 and footer_sort_order > 0 order by footer_sort_order, pages_title");
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_footer = 1
and footer_sort_order > 0
order by footer_sort_order, et.pages_title");
// end of modification
Replace by
Code:
// query modified for multi-language support
// $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_footer = 1 and footer_sort_order > 0 order by footer_sort_order, pages_title");
$page_query = $db->Execute("SELECT e.*, et.pages_title
FROM " . TABLE_EZPAGES . " e
LEFT JOIN " . TABLE_EZPAGES_TEXT . " et ON (e.pages_id = et.pages_id)
WHERE et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
AND e.status_footer = 1
AND e.footer_sort_order > 0
ORDER BY e.header_sort_order, et.pages_title");
// end of modification
ezpages_bar_header.php:
Find:
Code:
// query modified for multi-language support
// $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_header = 1 and header_sort_order > 0 order by header_sort_order, pages_title");
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_header = 1
and header_sort_order > 0
order by header_sort_order, pages_title");
// end of modification
Replace by
Code:
// query modified for multi-language support
// $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_footer = 1 and footer_sort_order > 0 order by footer_sort_order, pages_title");
$page_query = $db->Execute("SELECT e.*, et.pages_title
FROM " . TABLE_EZPAGES . " e
LEFT JOIN " . TABLE_EZPAGES_TEXT . " et ON (e.pages_id = et.pages_id)
WHERE et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
AND e.status_header = 1
AND e.header_sort_order > 0
ORDER BY e.header_sort_order, et.pages_title");
// end of modification
Does the above rectify the problem below?
Running ZC 1.3.8 with Multilanguage EZ-Pages 1.3.05v2.01
I have sorted out most of the errors that I have had with the mod by this thread. However, I am having issues where the mod seems to be ignoring Chapter and TOC settings. At some point after I first installed the mod, this was working correctly.
I looked here https://www.zen-cart.com/tutorials/i...hp?article=117 for some indication of how to indicate main and subordinate pages and it seems a little ambiguous. Also, I did not change any settings from before when it was working.
The site can be looked at http://www.pheniks.net/zen/
What you would be looking for is the fact that in the footer, there are a bunch of links that are supposed to be on Chapter and TOC.
For instance, "Our Candles" is supposed to be the parent page that will contain "You Breathe What You Burn," "Hand Carved," and "Guarantee." Also, "Events" is supposed to contain "Calendar."
Thanks in advance.
Re: Multi-Language Support for EZ-Pages
I have figured it out.
First, I did have an somehow messed up query in ezpages_bar_footer.php
Second, if you don't want the ezpage to show up on your site header, footer, sidebox, but you do want it to show up on Chapter/TOC set the sort order for the appropriate areas you don't want to zero (0).
And ta da, I've fixed it myself.
Re: Multi-Language Support for EZ-Pages
Does anyone know why my EZ Page page name would not show up in the header link? (ZC version 1.3.8).I am using the EZ Pages Multi Language Support
I have created an EZ Page (About Us) and have set the "EZ-Pages Display Status - HeaderBar" to On. The Header Status is on in the EZ Pages admin screen (with a number '10' to denote order.
When I view the source of any of my site pages, the EZ Page link is there, but the page Name is not (and therefore there is no clickable text)
I tried inserting //<?php echo $var_linksList[$i]['name']; ?> and the variable comes up blank.
I believe it to be a problem with this module as I have set up a test site that does not have the module installed, and the EZ page module shows up no problem in the header on the same conditions
My PHP skills are weak, so any help would be GREATLY appreciated!
Thanks in advance,
Brian
Re: Multi-Language Support for EZ-Pages
ok found the problem... the ez_pages_bar_header.php in the /includes/modules/CUSTOM directory was not being read. Once I copied it over to /includes/modules, it works fine. I guess I'm not getting the custom module override.
Re: Multi-Language Support for EZ-Pages
Does anyone know where the SQL query statment is for which you pulled the pages_title and show it in the HTML header (in the <title> tag)?
I don't know why mine is showing the pages_title from the original ezpages table instead of the ezpages_content table. Maybe this isn't an issue for any of you but since my zen cart is heavily modified, I'd like to know how I can fix it. All I need to know is where the location of the SQL statement (which file).
Thanks.
Re: Multi-Language Support for EZ-Pages
I installed the package with 1.3.8. a. However, it only works for update on the English html content, not on second language content. i.e. it goes to index.php?main_page=page&id=2, in fact it keeps going to the page2_1.php under the second language folder. Any help there?
I wonder the awesome bunyip support has long gone :P
Re: Multi-Language Support for EZ-Pages
Quote:
Originally Posted by
bjamieson
ok found the problem... the ez_pages_bar_header.php in the /includes/modules/CUSTOM directory was not being read. Once I copied it over to /includes/modules, it works fine. I guess I'm not getting the custom module override.
Read bunyip early posts, the "CUSTOM" directory should be your custom template directory name.