integrating Keywords into a page

DnaDna Registered Users Posts: 435 Major grins
edited December 15, 2008 in SmugMug Support
I know that appending 'keyword' to a site lists the keywords.

Is there anyway to incorporate the keywords display into a page with other stuff ?

Similar to the search term ?

Thanks

Andrew

Comments

  • richWrichW Registered Users Posts: 941 Major grins
    edited May 9, 2007
    Andrew, Are you looking to include the keyword list with other elements on their own page? I have keyword, date, search all on one page. http://lmsportspix.smugmug.com/find
    BTW, I like the wide format on your site.
  • DnaDna Registered Users Posts: 435 Major grins
    edited May 9, 2007
    richW wrote:
    Andrew, Are you looking to include the keyword list with other elements on their own page? I have keyword, date, search all on one page. http://lmsportspix.smugmug.com/find
    Yep, something like that. How did you do it ? headscratch.gif
    BTW, I like the wide format on your site.
    LSV Photos ? Thanks. I figured there was only 5% of surfers using 800x600 so I sized the site for 1024 wide.

    Andrew
  • richWrichW Registered Users Posts: 941 Major grins
    edited May 10, 2007
    Dna wrote:
    Yep, something like that. How did you do it ? <img src="https://us.v-cdn.net/6029383/emoji/headscratch.gif&quot; border="0" alt="" >

    LSV Photos ? Thanks. I figured there was only 5% of surfers using 800x600 so I sized the site for 1024 wide.
    Andrew
    Yes LSV Photos. It looks real nice on a 24inch wide screen monitor. Now on to the keyword page..........

    It's nothing more than devbobo's sub-page hack. http://www.dgrin.com/showthread.php?p=355505#post355505
    This will put the keyword list and the date search on the same page.
    Enable the keyword and date search boxes to be viewed on the homepage.

    In the JS section:

    function hasPath(sPath)
    {
    re = new RegExp("\/" + sPath + "(\/|$)");
    return re.test(window.location)
    }



    In your footer above the slideshow code:

    <*script type="text/javascript" language="javascript"*>

    if (hasPath("find"))
    YD.addClass(document.body, "find");

    <*/script*>

    Remove *'s

    In the css section

    .homepage #datesBox {display: none;}
    .homepage #keywordsBox {display: none;}

    .find #datesBox {display: block;}
    .find #keywordsBox {display: block;}
    .find #bioBox {display: none;}

    If you want to add SMUGSEARCH to the page. Place <div id="mySearch">SMUGSEARCH</div> as the last line in your header section. Add this to the css section:

    .homepage #mySearch {display: none;}
    .find #mySearch {display: block;}

    !important may be needed in the css.

    To access this page: http://www.andrewmurdoch.net/find

    See how it works out. Yell back if you need anything....
  • DnaDna Registered Users Posts: 435 Major grins
    edited May 10, 2007
    richW wrote:
    Yes LSV Photos. It looks real nice on a 24inch wide screen monitor.
    Thanks. thumb.gif
    Now on to the keyword page..........

    It's nothing more than devbobo's sub-page hack.
    See how it works out. Yell back if you need anything....
    Hmmmm... ok. everything copied in correctly and double checked against Devs code.

    and there's nothing there. headscratch.gif
    http://dna.smugmug.com/find

    Do I have to add any html to the description or something ?

    Thanks for your help.

    Andrew
  • richWrichW Registered Users Posts: 941 Major grins
    edited May 10, 2007
    Dna wrote:
    Thanks. thumb.gif
    Hmmmm... ok. everything copied in correctly and double checked against Devs code.
    and there's nothing there. headscratch.gif
    http://dna.smugmug.com/find

    Do I have to add any html to the description or something ?
    Thanks for your help.
    Andrew
    I disabled the style sheets on your site and I don't see the keyword list or date search boxes. Are they still in your control panel?
    If so, click show so they are on the homepage.
    Also you will need to put .homepage #bioBox {display: block;} in the css to bring the slideshow back up on the homepage.
  • richWrichW Registered Users Posts: 941 Major grins
    edited May 10, 2007
    Slight adjustment. Change this:
    .homepage .boxBottom {display:none;}
    to this:
    #categoriesBox {display: none;}
  • DnaDna Registered Users Posts: 435 Major grins
    edited May 10, 2007
    richW wrote:
    I disabled the style sheets on your site and I don't see the keyword list or date search boxes. Are they still in your control panel?
    If so, click show so they are on the homepage.
    Ahh that would be the one.
    Also you will need to put .homepage #bioBox {display: block;} in the css to bring the slideshow back up on the homepage.
    Don't seem to need it.

    Thanks again for all your help clap.gifclapthumb.gifthumbwings.gifbarb

    Andrew
  • richWrichW Registered Users Posts: 941 Major grins
    edited May 10, 2007
    Dna wrote:
    Ahh that would be the one.
    Don't seem to need it.

    Thanks again for all your help clap.gifclapthumb.gifthumbwings.gifbarb

    Andrew
    Your Welcome....thumb.gif
  • nishnish Registered Users Posts: 154 Major grins
    edited September 15, 2008
    richW wrote:

    This will put the keyword list and the date search on the same page.
    Enable the keyword and date search boxes to be viewed on the homepage.

    In the JS section:

    function hasPath(sPath)
    {
    re = new RegExp("\/" + sPath + "(\/|$)");
    return re.test(window.location)
    }



    In your footer above the slideshow code:

    <*script type="text/javascript" language="javascript"*>

    if (hasPath("find"))
    YD.addClass(document.body, "find");

    <*/script*>

    Remove *'s

    In the css section

    .homepage #datesBox {display: none;}
    .homepage #keywordsBox {display: none;}

    .find #datesBox {display: block;}
    .find #keywordsBox {display: block;}
    .find #bioBox {display: none;}

    If you want to add SMUGSEARCH to the page. Place <div id="mySearch">SMUGSEARCH</div> as the last line in your header section. Add this to the css section:

    .homepage #mySearch {display: none;}
    .find #mySearch {display: block;}

    Hi

    I tried this but it didnt work. It wouldnt leave the slideshow when I clicked on Search. Also, couldnt get onto the gallery page.

    Is there another way to do it? Or should I try this code again and tweak around with it?
  • nishnish Registered Users Posts: 154 Major grins
    edited September 21, 2008
    richW wrote:
    Andrew, Are you looking to include the keyword list with other elements on their own page? I have keyword, date, search all on one page. http://lmsportspix.smugmug.com/find
    BTW, I like the wide format on your site.

    Thats great! This is exactly what Im after.. except with maybe less keywords.
    Can you show me how to do it please?
  • RoundAmericaRoundAmerica Registered Users Posts: 34 Big grins
    edited December 15, 2008
    Need Help Setting Up a Find Page with Search, Keywords & Timeline
    richW wrote:
    Andrew, Are you looking to include the keyword list with other elements on their own page? I have keyword, date, search all on one page. http://lmsportspix.smugmug.com/find
    BTW, I like the wide format on your site.

    This page is exactly what I need. I followed this thread, but the links to the code and another sample were no longer correct.

    I suspect there must be another thread with how to do this, but I haven't been able to find it.

    I'd sure appreciate help.

    Thanks,

    RoundAmerica
    http://roundamerica.smugmug.com
    Bill
    Round America
    SmugMug Site: http://www.roundamerica.smugmug.com
    Trip Site: http://www.roundamerica.com
    Travel & Tour Site: http://www.roundamerica.us
Sign In or Register to comment.