Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2010
    Posts
    41
    Plugin Contributions
    0

    red flag Simple/HTML Image Gallery

    Basically I want to create a pictures catalog with categories.
    So I would need a custom link (which ive already figured this out. you can create one by going to includes/templates/template_default/sideboxes/tpl_categories.php
    and adding to the content on 11th line some html code.
    Next I would need some kind of a wrapper (this feature you can find in Joomla) so my set of html pages will be displayed inside ZenCart, right?

    How do I pull this off?!



    And another (yet might be simple) issue is that Quantity Box still pops up even though I choose "No, Do not show Quantity Box" when creating a new product?

    Help would be appreciated.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Simple/HTML Image Gallery

    Use ez-pages for your custom pages. You can add their content in admin > Tools > EZ-Pages, and connect them all to a TOC chapter. This will allow just one or two of them to be linked from the sidebox, while the rest show up in the TOC when you are in the group.

    In tpl_categories.php, use the built-in function to get the links:
    PHP Code:
    <?php echo zen_ezpages_link(23); ?>
    where 23 is replaced by the ez-page id. (If your file code location is already inside php tags, omit the ones shown here.)

    Also, in case you didn't already know this, never alter the content of a file in /template_default/. Copy the file to your custom template directory and edit there.

  3. #3
    Join Date
    Jan 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: Simple/HTML Image Gallery

    Quote Originally Posted by gjh42 View Post
    Use ez-pages for your custom pages. You can add their content in admin > Tools > EZ-Pages, and connect them all to a TOC chapter. This will allow just one or two of them to be linked from the sidebox, while the rest show up in the TOC when you are in the group.

    In tpl_categories.php, use the built-in function to get the links:
    PHP Code:
    <?php echo zen_ezpages_link(23); ?>
    where 23 is replaced by the ez-page id. (If your file code location is already inside php tags, omit the ones shown here.)

    Also, in case you didn't already know this, never alter the content of a file in /template_default/. Copy the file to your custom template directory and edit there.
    Now I got more confused, okey, could please have a look here: http://3d-ages.com/index.php?main_page=page_2
    this is the define_page_2.php content from the define pages editor. That would be the main page of the gallery.
    So next I need to create another HTML or PHP pages so the 1st and the 2nd categories would go somewhere, but still staying inside the center column of ZenCart?
    Comments please!
    Last edited by MegamanX; 9 Jan 2010 at 12:40 PM.

  4. #4
    Join Date
    Jan 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: Simple/HTML Image Gallery

    I just need users to go to some category, click on a desired picture which pops up, so the user can save it on his/her computer without additional fuss.

  5. #5
    Join Date
    Jan 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: Simple/HTML Image Gallery

    I got it!!!

    ...now the olnly thing left is to find a way to put a link in categories side-box, I managed to put a custom link, but, ABOVE the side-box

    How do I put it INSIDE the side-box?)) File tpl_categories.php, I know, but where exactly, which line?

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Simple/HTML Image Gallery

    Add your link in /includes/templates/your_template/sideboxes/tpl_categories.php, immediately after this line:
    PHP Code:
      $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">' "\n"
    PHP Code:
      $content .= '<a href="index.php?main_page=page_2">Custom Page</a>'

  7. #7
    Join Date
    Jan 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: Simple/HTML Image Gallery

    Quote Originally Posted by gjh42 View Post
    Add your link in /includes/templates/your_template/sideboxes/tpl_categories.php, immediately after this line:
    PHP Code:
      $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">' "\n"
    PHP Code:
      $content .= '<a href="index.php?main_page=page_2">Custom Page</a>'
    Yay! Its working, thanks a million!

    Now, as a final part of the question: is it possible to have stylesheet just for TOS`s pages? How the path for a single TOS page class or ID in CSS file would look, if I suppose created a CSS file in
    ...templates/my_template/my_stylesheet_file.css ?

    Or will I have to look for those in the ZenCart`s main stylesheet.css ?

  8. #8
    Join Date
    Jan 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: Simple/HTML Image Gallery

    Oh, and how to group TOC to show on a single page in middle?

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Simple/HTML Image Gallery

    It's not clear exactly what you want. Do you have "define pages" like the first example you did, or are you using ez-pages?
    If you have define pages, which have a name like page_2, you can make a stylesheet called page_2.css with the special rules for that page. If you want to specially style the ez-pages, you can make a stylesheet called page.css.

    For better control over the ez-page TOC, you can use the Improved EZ-Page TOC mod from Free Addons, and style it in the stylesheet.

    A link to see your site will make it easier to give the right advice.

  10. #10
    Join Date
    Jan 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: Simple/HTML Image Gallery

    Quote Originally Posted by gjh42 View Post
    It's not clear exactly what you want. Do you have "define pages" like the first example you did, or are you using ez-pages?.
    Currently im using both:
    difine_page_2.php - for listing catigories http://3d-ages.com/index.php?main_page=page_2
    And TOCs for listing different categories` content.
    Quote Originally Posted by gjh42 View Post
    If you have define pages, which have a name like page_2, you can make a stylesheet called page_2.css with the special rules for that page.
    Got it.
    Quote Originally Posted by gjh42 View Post
    If you want to specially style the ez-pages, you can make a stylesheet called page.css.
    But should I put this page.css inside my custom template`s folder?
    and how do I get needed IDs and CLASSES i want to change for a single ez page?
    Quote Originally Posted by gjh42 View Post
    For better control over the ez-page TOC, you can use the Improved EZ-Page TOC mod from Free Addons, and style it in the stylesheet.
    Got it. Ill definetly check this out!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Simple Product Page Image Gallery/Viewer
    By Inxie in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Sep 2012, 02:25 AM
  2. Simple Gallery Solution
    By lucky__starre in forum General Questions
    Replies: 33
    Last Post: 29 Apr 2010, 02:43 AM
  3. Simple Gallery ?
    By NullMind in forum General Questions
    Replies: 3
    Last Post: 10 Apr 2008, 09:48 PM
  4. Simple ZC gallery
    By kiddo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 12 Nov 2007, 02:28 PM
  5. How to modify Page_2 so it shows an outside .html page (to load flash image gallery)
    By evilivy in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 May 2007, 02:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg