By unschooler on
Hi,
I'm a newbie, so sorry if it's a lame question, but here goes.
I'm using the new and experimental links package.
I've set up a links page, and it seems to work ok.
Only problem is that I don't know how to style the table that forms the link categories and the links themeselves.
Anybody have a clue?
thanks!
Comments
forgot...
oh sorry, here's the links page I'm testing (it's in Danish): http://www.unschooling.dk/?q=links/weblink
As you can see, the categories are way too close to each other. And actually, I would also like to hide the subcategories, if anyone knows how to do this?
CSS
You would change that via CSS. Play with the margin property.
http://www.w3schools.com/css/css_reference.asp
----
http://PointHomes.com
well...
I don't really need lessons in CSS, I just need to know where to change the CSS for the weblinks module?
The weblinks module
The weblinks module shouldn't have css. Just look at the source of the links and add the proper entry in the misc/drupal.css file. Adding the stlye in the misc/drupal.css file will allow you to carry on those styles even after changing the theme.
It might be tricky adding style because the links might not have a class ( class="weblinks" ). If that is so, you might have to go in the PHP file and add your own class to the link. If you really don't know PHP, ask me and I'll do it when I have a few free minutes.
Hope this helps.
----
http://PointHomes.com
thanks a lot for your
thanks a lot for your help!
I finally got styles working, but what I could really use some help with is the following:
For some reason links that belong to categories are displayed on the main (or top) weblinks page. How can I remove them?
I only want them to appear when you click on the category. What I need is a simple directory of link categories, and I don't want links to appear "outside" of their categories. Any idea what I'm doing wrong?
cheers
Morten
That main page probably
That main page probably shows you the most popular links for all of the categories. I think that this might be a feature (I don't know, I havn't used the module).
You should check if there is an option to disable this in the weblinks module settings. If not, ask the developer of the module to add this option so that you can disable the feature.
----
http://PointHomes.com
better put changes in style.css
It is not long that I use CVS to upgrade core drupal. I read somewhere an advice not to make changes in drupal.css since it is part of core Drupal, it can get overwritten with every upgrade. Same is valid for sites/default/settings.php; in the beginning I would change it, until I read it is better to make a sites/mydomain.com/settings.php that cannot be overwritten by an upgrade.
Although I agree that putting the classes in drupal.css will make them valid for all themes, this will also mean that they look alike in all themes. Since themes normally look different, they would need each their own weblinks style.
alternative methods?
Hi,
thanks for your comments.
I can't really find anywhere to disable these "favourite links" either in the admin-settings or in the code itself.
I've been thinking about other ways to accomplish my goals of building a links directory - would this be possible with flexinode or CKK? (I'm still new to Drupal and I haven't tried these moduls - but they sound powerful)
I would just think that a links directory is an often used part of a website - a lot of people - I'm guessing - must have found a way to make one?