Closed (fixed)
Project:
Web Links
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Feb 2007 at 23:52 UTC
Updated:
25 Jul 2008 at 04:53 UTC
Jump to comment: Most recent file
Hello
Would it be possible to extend the functionality of this really wonderful module, in order to support CSS? I would really like to change the way links appear, so that I can have different link colors between the links section and the rest of the site.
I know that I can manage it if I work with classes through the main theming CSS style, but it would be more flexible if there was another CSS file for only Web Links module.
Thanks alot!
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | weblinks11.patch | 13.59 KB | nancydru |
Comments
Comment #1
ideaoforder commentedThis is a great suggestion! I'll work on adding it to the next revision.
Comment #2
rmiddle commentedNeed to look into this.
Thanks
Robert
Comment #3
nancydruRobert: would you like me to tackle this one?
Comment #4
rmiddle commentedNancyDru,
Anything you want to work on feel free. I only care the works get done not who does it. The more you do the less I have to do. :)
Thanks
Robert
Comment #5
nancydruI know the feeling. With 18 contribs of my own, I'll take any help I can get. I just happen to have a site that needs WL right now, so I'm actively thinking about it.
Comment #6
rmiddle commentedComment #7
nancydruI am actively working on this.
Comment #8
nancydru@Ldectus_gr: are you still looking for this? Are you using the 6.x version?
Comment #9
vangelisp commentedHi again! I'm still using the 5.x version (modified with collapsible fields) and currently I'm happy with it.
But to tell you the truth, it would still be a nice feature to add. Of course IF this doesn't require lots and lots of developing time to be done, otherwise, I'm not sure if it's worth the hussle.
How are you proceeding on this ? Coloring through CSS or through the Web-UI per category or link ?
PS. Here's the weblinks 5.x (I don't remember which version) in action: http://www.motoridersclub.com/en/weblinks
Thanks !
Comment #10
nancydruOkay, I'm working in the 6.x version because I don't currently use it on any 5.x sites (although that's likely to change now). I'm trying to get this part done before I go back and tackle the fieldsets (which both Robert and I would like to see). It would be nice if you could do a proper patch in that other issue to make it easier to see what you did.
The page description gets a new theme function as well as its own CSS class. Likewise, the authoring information has a new theme function, proper translatability, and its own class.
Right now, the main part of each link is still not themed, although I would like to change that (one step at a time). However, I am adding a new class to the UL tag, so that each category can be formatted differently, if desired. The individual links get two new classes. The first is just a generic "weblinks-item." The second is "weblinks-link-nid" so that even individual links can be formatted separately.
With some of the clean up that I've done, I would expect someone with a larger number of links will also see a performance boost on the links page.
Comment #11
rmiddle commentedI am so looking forward to that patch.
Thanks
Robert
Comment #12
nancydruRobert, since I don't have CVS access, I need a new file added before the patch. This is "weblinks.css"
Comment #13
rmiddle commentedOk added to CVS.
Comment #14
nancydruHere's the first cut at the whole thing. (Sorry, I have customers breathing down my neck and they pay more than you do.)
This patch does a bit more than the original intent, I hope you don't mind my throwing a few other things in.
Whew!
There is a bit of code commented out from a quick initial test to use Image Attach. I would appreciate leaving it in place for now.
I still want to do some more work in this area before we move on to collapsible fieldsets.
Comment #15
nancydruWell, I suppose the actual patch would help.
Comment #16
nancydruI will refresh my working code after you review this
Comment #17
rmiddle commentedNancy for the most part it looks good except no theme_weblinks_node_view is included? It is defined but not included?
Thanks
Robert
PS. Dang this is going to be fun to back port to 5.
Comment #18
rmiddle commentedComment #19
nancydruActually back porting shouldn't be a big deal, other than just the manual effort to integrate the whole thing. I even did the themes so that they should work in 5.x.
Hmm, how could I have lost the template?
Comment #20
nancydruHmm, it's there in my code; I didn't even touch that area. I didn't use it in my new code.
Comment #21
rmiddle commentedNancy,
The rest of the patch looks good. I will commit once I have the template. file. I also want to reweight the form a little when viewing the node the url should be above the title not below. But that has nothing to do with you patch.
Thanks
Robert
Comment #22
rmiddle commentedNancy,
I am losing it that is the tpl.php file already there.
I need more coffee this morning I think.
Robert
Comment #23
rmiddle commentedComment #24
nancydruHee, hee. I'm on my 5th cup.
Comment #25
rmiddle commentedOk that patch is committed.
Thanks
Robert
Comment #26
nancydruOh, shoot.
I'll have to one more little one to fix HTML entities caused by check_plain...
Comment #27
rmiddle commentedNancy,
That is cool. I also copied your SQL changes for sort order over to the block display but I am thinking that I should make that a diff option? What are your though on that?
Thanks
Robert
Comment #28
nancydruYes, I looked at that briefly. It probably should be changed, but I haven't carefully studied it to see what makes sense. Maybe I should enable the blocks to get an idea if what it actually does. ;-)
It may also make sense to add a "more..." link.
Comment #29
rmiddle commentedYea a "more..." Link makes since. I personally only use the blocks. That is why alpha1 was released with /weblink not working. I never noticed it wasn't working in the months that I was running the pre alpha1 code on my site. Although once we have the collapsible fieldsets included I might actually use that feature they looked cool.
Thanks
Robert
Comment #30
nancydruRobert, I just downloaded alpha8 and it looks like you added the CSS file, but maybe didn't commit it?Never mind, I see alpha8 was done before that. I'll wait for the -dev to roll up, I guess.
Comment #31
rmiddle commentedalpha8 was to fix the mistake in alpha6 that I though was in alpha7. I try not to do update more then every few days. There are already a few people who aren't happy with my every few day release process I have been doing already.
Thanks
Robert
Comment #32
rmiddle commentedNancy,
I just committed a really cool update. I merged all the query code into 1 function. I added a new case to support most recent as used in recent_block and now all that code is in one place.
Thanks
Robert
Comment #33
nancydruSounds great. As soon as the -dev version rolls up, I'll download it.
Yes, maybe it is time to slow down a bit on the releases. But then they will complain that they don't like -dev versions... On my modules I try not to do a new version more than once a month, but sometimes you feel like you really have no choice.
Comment #34
rmiddle commentedI go though the same pattern. I take over a project I clean up the queue do a bunch of updates really close together. Start to realize how many updates are going though start to slow down on the releases and then once things start to get clean releases return to normal. Then repeat with next project. I need to stop that patten before I fall over from work.
Thanks
Robert
Comment #35
rmiddle commentedComment #36
rmiddle commentedCommitted to D5 CVS.
Comment #37
nancydru