Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages

www.blogsome.com Forum Index » Questions and Comments

Post new topic   Reply to topic
Categories in Links
View previous topic :: View next topic  
Author Message
liberated
Guest





PostPosted: Tue Dec 27, 2005 4:09 am    Post subject: Categories in Links Reply with quote

I was wondering about whether the categories in the blogroll section could be displayed in the blog itself. What I mean is something like this:

Friend's Blogs

John
Fabian
Jamine
Richard

Interesting Blogs

Blog1
Blog2
Blog3

The issue now is that the blogroll will just cluster all the links together, grouping them according to categories without displaying the category headings themselves. I was wondering whether there's anyway to do this? May I suggest that blogsome make it possible to have this option, if it is not already there?
Back to top
liberated
Guest





PostPosted: Tue Dec 27, 2005 4:10 am    Post subject: blogroll Reply with quote

May I also suggest that it be possible to have the blogroll in a scroll-down format, akin to the one like the archives or even the categories. Or is it possible to do it in code?
Back to top
schinckel



Joined: 03 Apr 2005
Posts: 1238
Location: Adelaide, Australia

PostPosted: Tue Dec 27, 2005 5:15 am    Post subject: Reply with quote

{get_links_list} will do what you wanted for the first one.

Something like:

Code:
                <h2>Links Dropdown</h2>
                <ul>
                    <form name="linksform" action="" method="POST">
                        <p style="margin: 0px; padding: 0px;"><select id="link_list">
                        <option value=''>Select Link to View</option>
                        {get_links before="<option>" after="</option>"}
                        <input type="button" value="Go" onclick="window.location = (document.forms.linksform.link_list[document.forms.linksform.link_list.selectedIndex].value);" /></p>
                    </form>
                </ul>


Nearly works, but there isn't a visible way to set the value.

So, you'll need to use some Smarty Trickery:

Code:
{capture name="linklist"}{get_links after=''}{/capture}
{$smarty.capture.linklist|replace:'<a':'<option'|replace:'</a>':'</option>'|replace:'href':'value'}

(Use these two lines instead of the {get_links...} line above.


(BTW, the first question is answered elsewhere in the forums, this is AFAIK the first time the second one has been done.)
_________________
Blogsome Forum: Rules/Search
WordPress Codex; Smarty Tags Docs
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
orate



Joined: 08 Jul 2006
Posts: 43

PostPosted: Sun Jul 16, 2006 4:33 pm    Post subject: Reply with quote

I've got a similar question, but the code above didn't solve my problem/wish:

I've defined few link categories. My wish is like in the first posting here, to have seperate lists of links, like I defined the categories.

My Code yet:

Code:
<h2>Links:</h2>
        <ul>
          {get_links category='-1' before='<li>' after='</li>' between='' show_images='0' orderby='name' show_description='0' show_rating='-1' limit='-1' show_updated='-1'}
        </ul>
Back to top
View user's profile Send private message
Shana



Joined: 19 Sep 2005
Posts: 955
Location: Lincolnshire, UK

PostPosted: Sun Jul 16, 2006 9:01 pm    Post subject: Reply with quote

Try this code:

Code:
<h2>Links:</h2>
<ul>
{get_links_list category='-1' before='' after='' between='' show_images='0' orderby='_id' show_description='-1' show_rating='0' limit='-1' show_updated='-1'}
</ul>


Shana
_________________
it's all beta - a basic guide to using Blogsome
please don't PM me with questions that belong in the forum
Back to top
View user's profile Send private message
orate



Joined: 08 Jul 2006
Posts: 43

PostPosted: Sun Jul 16, 2006 9:20 pm    Post subject: Reply with quote

super, your great.

Thanks a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.blogsome.com Forum Index » Questions and Comments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum