Results 1 to 10 of 11

Hybrid View

  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>'

 

 

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