Ruby Forum Radiant CMS > Benny Degezelle's Tags extension

Posted by David Piehler (davidpiehler)
on 08.05.2008 20:10
Benny (or anyone else who might know), I came across the Tags extension
via a Google search:

http://www.nabble.com/using-acts_as_taggable-td16390502.html

This seems like it will meet my page tagging needs. I just wanted to
make sure the version made available via SVN is the newest one:

svn://zuurstof.openminds.be/home/kaizer/svn/rails_stuff/radiant_extensions/tags

Thanks!
- Dave
Posted by Arik Jones (imakethings)
on 10.05.2008 07:55
Awesome, was looking for the same thing! Great find!

David Piehler wrote:
> Benny (or anyone else who might know), I came across the Tags extension
> via a Google search:
> 
> http://www.nabble.com/using-acts_as_taggable-td16390502.html
> 
> This seems like it will meet my page tagging needs. I just wanted to
> make sure the version made available via SVN is the newest one:
> 
> svn://zuurstof.openminds.be/home/kaizer/svn/rails_stuff/radiant_extensions/tags
> 
> Thanks!
> - Dave
Posted by Benny Degezelle (jomz)
on 10.05.2008 18:38
Hi,

I just moved the extension to github 
(http://github.com/jomz/radiant-tags-extension), and will probably not 
be synchronizing the subversion repos. I only did a tiny README update 
since the svn-version. Can somebody please confirm that the version as 
found on github works with 0.6.6? thanks.

Still struggling with git and github.., how do you guys set up a 
svn:external'ish environment for extensions?

Regards,

Benny
Posted by Marty Haught (Guest)
on 10.05.2008 19:33
(Received via mailing list)
> Still struggling with git and github.., how do you guys set up a
> svn:external'ish environment for extensions?

I don't know what approach is best but what I've done is do a git
clone into the target directory (did it with a plugin but should work
fine for an extension) of your app.  I then tell svn to ignore the
.git directory as well as tell git to ignore the .svn directories.
You can continue to keep the git clone up-to-date.  However, I have
gotten some svn errors (!) when git removes or moves files.  You'll
need to manually fix those in svn.  Otherwise git and svn live in
harmony.  If you're using git as your app repo then I believe
submodules are the way to go but I have yet to try this out.  My git
fu isn't that great yet. :)

Cheers,
Marty
Posted by Benny Degezelle (jomz)
on 12.05.2008 20:48
Marty Haught wrote:
>> Still struggling with git and github.., how do you guys set up a
>> svn:external'ish environment for extensions?
> 
> I don't know what approach is best but what I've done is do a git
> clone into the target directory (did it with a plugin but should work
> fine for an extension) of your app.  I then tell svn to ignore the
> .git directory as well as tell git to ignore the .svn directories.
> You can continue to keep the git clone up-to-date.  However, I have
> gotten some svn errors (!) when git removes or moves files.  You'll
> need to manually fix those in svn.  Otherwise git and svn live in
> harmony.  If you're using git as your app repo then I believe
> submodules are the way to go but I have yet to try this out.  My git
> fu isn't that great yet. :)
> 
> Cheers,
> Marty

I switched to git for my 'master' instance, which is synced with my 
previous (svn) 'master' because there's still many instances with 
piston'd folders to the svn url. I went with submodules, and i really 
like it so far. This article helped me get started;

http://woss.name/2008/04/09/using-git-submodules-to-track-vendorrails/
Posted by David Piehler (davidpiehler)
on 16.05.2008 18:03
Benny Degezelle wrote:
> I just moved the extension to github 
> (http://github.com/jomz/radiant-tags-extension), and will probably not 
> be synchronizing the subversion repos. I only did a tiny README update 
> since the svn-version. Can somebody please confirm that the version as 
> found on github works with 0.6.6? thanks.

Thanks for reviving this great extension, Benny. I found two issues that 
should be simple fixes. I'm not setup with Git yet, so I can't make a 
proper patch for you, so I hope this works.

Bug:

The current code is looking for the incorrect querystring parameter on 
the Search By Tag page. In app/models/tag_search_page.rb change line 58 
from...
tag = @request.parameters[:tag]
...to...
tag = @request.parameters[:q]

'Should be Fixed Eventually but Not Important':

tags.css should get installed in stylesheets/admin (instead of directly 
in stylesheets) during the rake install.


Outside of this, everything seems to work great!
- Dave