| View previous topic :: View next topic |
| Author |
Message |
liberated Guest
|
Posted: Tue Dec 27, 2005 4:09 am Post subject: Categories in Links |
|
|
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
|
Posted: Tue Dec 27, 2005 4:10 am Post subject: blogroll |
|
|
| 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
|
Posted: Tue Dec 27, 2005 5:15 am Post subject: |
|
|
{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 |
|
orate
Joined: 08 Jul 2006 Posts: 43
|
Posted: Sun Jul 16, 2006 4:33 pm Post subject: |
|
|
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 |
|
Shana
Joined: 19 Sep 2005 Posts: 955 Location: Lincolnshire, UK
|
Posted: Sun Jul 16, 2006 9:01 pm Post subject: |
|
|
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 |
|
orate
Joined: 08 Jul 2006 Posts: 43
|
Posted: Sun Jul 16, 2006 9:20 pm Post subject: |
|
|
super, your great.
Thanks a lot. |
|
| Back to top |
|
|