Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Questions About Define_Pages

    http://book-oasis.com/index.php

    Is it possible to create a sidebox that lists extra Define_Pages? Ideally we want to create author pages for each of our authors. Currently the only way we can see to do that is to create a category listing for each of them, and then have that listed beneath the existing categories in the Categories sidebox. But that will double the length of that sidebox, and it's already quite long. We'd like to have the author sidebox on the opposite side.

    Yes, we know we can list the author names in the Manufacturers' sidebox...but while that creates a very nice dynamic list of the books each one has published, it does not provide the option for an author bio. Define_Pages should do that...if we can figure out how to link them into the index.php page.

    Also, a few blank pages are included, but not nearly enough. How can we create additional blank pages? Is it just a matter of finding them on the server, then duplicating them and increasing the number counts? define_page_5.php, define_page_6.php, define_page_7.php, etc.?

    Thanks very much for your help!!

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Questions About Define_Pages

    Couldn't you accomplish that via EZ-Pages?

  3. #3
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Re: Questions About Define_Pages

    I don't really know. I've never used EZ-Pages. Can I add those into a sidebox?

  4. #4
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Re: Questions About Define_Pages

    Let me rephrase: I found the section labeled EZ-Pages and tried to create a test sidebox labeled Author Pages, with the text in the box saying "This is a test." Nothing happened; how do I get it to show up on the index page? I looked at the Layout Boxes Controller and no new sidebox category was created, so obviously I'm missing something.

  5. #5
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Questions About Define_Pages

    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  6. #6
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Questions About Define_Pages

    You could use the manufacturers_all or manufacturers_all_about mods, whether or not just the sidebox functionality, although I have not checked their latest upgrade status.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Questions About Define_Pages

    Quote Originally Posted by DK_Scully View Post
    Ideally we want to create author pages for each of our authors.

    Yes, we know we can list the author names in the Manufacturers' sidebox...but while that creates a very nice dynamic list of the books each one has published, it does not provide the option for an author bio.
    Perhaps what you need is just a little customizing of the Manufacturers display?
    What if the pick-list of authors in the sidebox could still be used? That would let there be a quick-search for books by that author, and also display a bio at the top of the list.

    This could be done by adding a manufacturer description. There's probably already a plugin for this, but you can do it yourself pretty easily:

    SQL to add field to db:
    Code:
    ALTER TABLE manufacturers_info ADD COLUMN `mfg_description` text NOT NULL;
    /includes/modules/pages/index/main_template_vars.php, (around line 219 in v1.5.5) :

    Code:
    if ($current_categories_name == '' && isset($_GET['manufacturers_id'])) {  $result = $db->Execute( "SELECT * FROM " . TABLE_MANUFACTURERS . " m
                               LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id)
                               WHERE m.manufacturers_id = " . (int)$_GET['manufacturers_id'] . " 
                               AND languages_id = " . (int)$_SESSION['languages_id'] . "
                                LIMIT 1");
      if (!$result->EOF) {
          $current_categories_name = $result->fields['manufacturers_name'];
          $current_categories_description = $result->fields['mfg_description'];
      }
    }
    The above will make the mfg-description show above their products.

    To enter the author bio's you'd need to add the raw HTML to the mfg_description field in the manufacturers_info table for each manufacturer.
    How do you enter your data to the store now? Do you always use the built-in Admin screens? Or do you load data using other tools?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. questions about ezpages
    By devlin in forum General Questions
    Replies: 4
    Last Post: 9 Aug 2012, 12:31 AM
  2. EZ Pages/Define_Pages Consistency
    By cpking in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Sep 2007, 12:11 PM
  3. Questions about ZenCart
    By sctb082552 in forum General Questions
    Replies: 3
    Last Post: 14 Mar 2007, 09:08 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR