[Radiant] tags extension -- words that won't validate

2010-04-06 Thread Steven Southard
I've been using the tags extension ubiquitously through out a large  
site and I've found one word that won't validate.

Anytime I use "Media" I get, "Validation errors occurred while  
processing this form. Please take a moment to review the form and  
correct any input errors before continuing."

Lower case "media" works fine, but "meDia", "mEdia", "MediA", etc. are  
a no go.  "Medias" is fine although it isn't a word.

Does anyone know what could be causing this problem?

Steven


Steven Southard
http://www.stevensouthard.com
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] tags extension -- tag_cloud minimum

2010-03-03 Thread Steven Southard
I've been searching through the code to find what is setting the  
minimum of three pages tagged before a tag is listed in a tag_cloud  
but so far it has eluded me.  Can anyone point me in the right  
direction?


Steven


Steven Southard
http://www.stevensouthard.com
___
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] Tags Extension Bug?

2009-08-28 Thread subsorama

Hi,

I think I am seeing a bug in the Tags extension - whenever a tag is  
deleted from a page it appears that same tag cannot be re-applied even  
to different page. Has anyone else come across this? Any idea's on  
what might be causing it?


Thanks,


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Radiant Tags Extension

2009-06-30 Thread Petrik de Heus
I had some trouble with the page ordering not working properly (with  
the radiant-reorder-extension).
Turns out it was caused by the radiant-tags-extension which adds a  
setter for meta_tags to Page:


  def meta_tags= tags
  self.save if self.new_record?
  ...

The problem with this is that if you create a new Page, the save  
method would get called twice and all after_save callbacks get called  
twice.

I refactored it to use a after_save call_back: 
http://github.com/p8/radiant-tags-extension/commits/0.7.1-fixes
This might be something other extension developers should be aware of  
so bugs like this can be avoided .


Petrik
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension

2009-04-07 Thread Steven Southard
I've done this twice now on two different servers.  If I use git clone  
to build my radiant project and try to start it up with the tags  
extension it has this problem.  If I use the radiant gem to build my  
project it seems to work fine.  The problem is solved for me but I  
can't help and wonder what the problem is.  Using git clone to build  
the radiant project seems like a great way to build it.  Did I over  
look something?  Did I do something wrong?  Are the files somehow  
different?


Steven






On Apr 6, 2009, at 2:58 PM, Steven Southard wrote:


Has anyone else installed Radiant 7.1 and the tags and seen:

NoMethodError in Admin/pages#edit

Showing vendor/extensions/tags/app/views/admin/pages/ 
_tag_field.html.erb where line #3 raised:


undefined method `quoted_table_name' for false:FalseClass

Extracted source (around line #3):

1: 
2:   Tags
3:   name="page[meta_tags]" size="160" type="text" value="<%=  
@page.tag_list %>" />

4: 

Trace of template inclusion: app/views/admin/pages/ 
_fields.html.haml, app/views/admin/pages/edit.html.haml

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] tags extension

2009-04-06 Thread Steven Southard

Has anyone else installed Radiant 7.1 and the tags and seen:

NoMethodError in Admin/pages#edit

Showing vendor/extensions/tags/app/views/admin/pages/ 
_tag_field.html.erb where line #3 raised:


undefined method `quoted_table_name' for false:FalseClass

Extracted source (around line #3):

1: 
2:   Tags
3:   name="page[meta_tags]" size="160" type="text" value="<%=  
@page.tag_list %>" />

4: 

Trace of template inclusion: app/views/admin/pages/_fields.html.haml,  
app/views/admin/pages/edit.html.haml

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] tags extension and has_many_polymorphs

2009-02-11 Thread Jim Gay
I'm curious about the usage of has_many_polymorphs provided in the  
tags extension. Has anyone built other extensions on top of this?


Polymorphic association is overkill if the only thing being tagged is  
a Page model so I'm contemplating a major refactoring of the tags  
extension or writing a simpler 'categories' extension if the need for  
tags with has_many_polymorphs is great.

Is there any desire to tag other models in addition to Page?

-Jim


Jim Gay
http://www.saturnflyer.com



___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension

2009-02-10 Thread Enrico Teotti
Hi,
maybe I was drunk. Apparently  works
fine inside 
No need for tricks. It will automatically display the tags of that
children page.
Ciao,
Enrico

2009/1/28 Simon Josi :
> Maybe this could work:
> http://github.com/Aissac/radiant-extensions-extension
>
> greets
> /simon
>
> On Wed, 28 Jan 2009 12:14:42 +1100
> Enrico Teotti  wrote:
>
>> Hi,
>> I need to have the tag list for each page coming out of:
>> 
>>
>> I'd use a:
>> 
>>
>> but since that's not allowed by radius I am now clueless. How would
>> you do it? Is anybody doing such a thing?
>> Cheers,
>> Enrico
>
> ___
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>



-- 
Enrico Teotti
IT consultant, accessible web sites and web applications
Sydney, NSW, Australia
[email protected]
mobile (IT) +393286590765
mobile (AU) +00610416748450

http://www.teotti.com
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension

2009-02-10 Thread Steven Southard

I'm looking at radius_tags.rb

tag "all_tags:each" do |tag|
order = tag.attr['order'] || 'name'
limit = tag.attr['limit'] || '5'
result = []
case order
when 'name'
  all_tags = MetaTag.find(:all, :limit => limit)
else
  all_tags = MetaTag.cloud(:limit => limit)
end
all_tags.each do |t|
  tag.locals.meta_tag = t
  result << tag.expand
end
result
  end


And for my use it would be better if it had a conditional statement  
eliminating any tags not used in any of the pages. Does anyone have  
quick idea how to get at that?


Steven





On Feb 9, 2009, at 8:53 PM, Steven Southard wrote:

  seems to list tags even if they're not currently  
being used.  Is there any way to list only tags that are being  
used?  Or is there any way to manage tag or at least remove unused  
tags?


//Steven
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] tags extension

2009-02-09 Thread Steven Southard
  seems to list tags even if they're not currently  
being used.  Is there any way to list only tags that are being used?   
Or is there any way to manage tag or at least remove unused tags?


//Steven
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension -> dropdown

2009-02-09 Thread Steven Southard
While trying to express what it was I was really after, I came up with  
this and it works fine for what I wanted. Thank you for you assistance.



option>



//Steven

On Feb 9, 2009, at 7:17 PM, N. Turnage wrote:


Steven Southard wrote:
Really? It looks like it would make a nice dropdown of something,  
yet I don't see how that accesses tags at all.





This tells radiant to look in the "something" tree.




This sets up a for each loop.


This inserts the value of the slug (think "something-child-one") as  
the value of the select option with the title (think "Something  
Child One") as the visible option.





These of course close those tags.

What exactly are you trying to do with a dropdown list?


// Nate

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension -> dropdown

2009-02-09 Thread N. Turnage

Steven Southard wrote:
Really? It looks like it would make a nice dropdown of something, yet 
I don't see how that accesses tags at all.





This tells radiant to look in the "something" tree.




This sets up a for each loop.


This inserts the value of the slug (think "something-child-one") as the 
value of the select option with the title (think "Something Child One") 
as the visible option.





These of course close those tags.

What exactly are you trying to do with a dropdown list?


// Nate

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension -> dropdown

2009-02-09 Thread Steven Southard
Really? It looks like it would make a nice dropdown of something, yet  
I don't see how that accesses tags at all.




On Feb 9, 2009, at 7:01 PM, N. Turnage wrote:


Steven Southard wrote:

Is there any way to break tags up so It can be made into a dropdown?


I imagine it would be something like this:











// Nate
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension -> dropdown

2009-02-09 Thread N. Turnage

Steven Southard wrote:

Is there any way to break tags up so It can be made into a dropdown?


I imagine it would be something like this:



 
 
 





// Nate
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] tags extension -> dropdown

2009-02-09 Thread Steven Southard

Is there any way to break tags up so It can be made into a dropdown?


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension

2009-01-28 Thread Simon Josi
Maybe this could work:
http://github.com/Aissac/radiant-extensions-extension

greets
/simon

On Wed, 28 Jan 2009 12:14:42 +1100
Enrico Teotti  wrote:

> Hi,
> I need to have the tag list for each page coming out of:
> 
> 
> I'd use a:
> 
> 
> but since that's not allowed by radius I am now clueless. How would
> you do it? Is anybody doing such a thing?
> Cheers,
> Enrico


signature.asc
Description: PGP signature
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Re: [Radiant] tags extension

2009-01-27 Thread Enrico Teotti
Hi,
I need to have the tag list for each page coming out of:


I'd use a:


but since that's not allowed by radius I am now clueless. How would
you do it? Is anybody doing such a thing?
Cheers,
Enrico
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension

2009-01-20 Thread Jim Gay

Steven,

Check out the tag for non-0.7 radiant 
http://github.com/jomz/radiant-tags-extension/tree/pre-radiant-0.7

-Jim

On Jan 19, 2009, at 8:18 PM, Steven Southard wrote:

It seemed to be something with the pages folder.  I changed the name  
to "page" and it worked fine.



On Jan 19, 2009, at 6:35 PM, Steven Southard wrote:

Yeah, actually i think my copy and past left the "s" off but it's  
actually located there with the "s".  Don't think that is the  
problem.  Any other ideas?




On Jan 19, 2009, at 5:04 PM, Jeroen Janssen wrote:


Hi,

I think the extension needs to be installed in the
"vendor/extensions/tags" directory if I understand correctly.

Best regards,

Jeroen Janssen

On Mon, Jan 19, 2009 at 11:03 PM, Steven Southard
 wrote:

I tried installing Jomz's tags extension using:

git clone git://github.com/jomz/radiant-tags-extension.git
vendor/extensions/tag
rake production radiant:extensions:tags:install

and it seemed to install fine except I get:

`tag_field' default partial not found!  on any page

I was wondering if I should change the tag_field.html.erb file  
name, maybe?


Am I missing something else?



Steven

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension

2009-01-19 Thread Steven Southard
It seemed to be something with the pages folder.  I changed the name  
to "page" and it worked fine.



On Jan 19, 2009, at 6:35 PM, Steven Southard wrote:

Yeah, actually i think my copy and past left the "s" off but it's  
actually located there with the "s".  Don't think that is the  
problem.  Any other ideas?




On Jan 19, 2009, at 5:04 PM, Jeroen Janssen wrote:


Hi,

I think the extension needs to be installed in the
"vendor/extensions/tags" directory if I understand correctly.

Best regards,

Jeroen Janssen

On Mon, Jan 19, 2009 at 11:03 PM, Steven Southard
 wrote:

I tried installing Jomz's tags extension using:

git clone git://github.com/jomz/radiant-tags-extension.git
vendor/extensions/tag
rake production radiant:extensions:tags:install

and it seemed to install fine except I get:

`tag_field' default partial not found!  on any page

I was wondering if I should change the tag_field.html.erb file  
name, maybe?


Am I missing something else?



Steven

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension

2009-01-19 Thread Steven Southard
Yeah, actually i think my copy and past left the "s" off but it's  
actually located there with the "s".  Don't think that is the  
problem.  Any other ideas?




On Jan 19, 2009, at 5:04 PM, Jeroen Janssen wrote:


Hi,

I think the extension needs to be installed in the
"vendor/extensions/tags" directory if I understand correctly.

Best regards,

Jeroen Janssen

On Mon, Jan 19, 2009 at 11:03 PM, Steven Southard
 wrote:

I tried installing Jomz's tags extension using:

git clone git://github.com/jomz/radiant-tags-extension.git
vendor/extensions/tag
rake production radiant:extensions:tags:install

and it seemed to install fine except I get:

`tag_field' default partial not found!  on any page

I was wondering if I should change the tag_field.html.erb file  
name, maybe?


Am I missing something else?



Steven

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] tags extension

2009-01-19 Thread Jeroen Janssen
Hi,

I think the extension needs to be installed in the
"vendor/extensions/tags" directory if I understand correctly.

Best regards,

Jeroen Janssen

On Mon, Jan 19, 2009 at 11:03 PM, Steven Southard
 wrote:
> I tried installing Jomz's tags extension using:
>
> git clone git://github.com/jomz/radiant-tags-extension.git
> vendor/extensions/tag
> rake production radiant:extensions:tags:install
>
> and it seemed to install fine except I get:
>
> `tag_field' default partial not found!  on any page
>
> I was wondering if I should change the tag_field.html.erb file name, maybe?
>
> Am I missing something else?
>
>
>
> Steven
>
> ___
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] tags extension

2009-01-19 Thread Steven Southard

I tried installing Jomz's tags extension using:

git clone git://github.com/jomz/radiant-tags-extension.git vendor/ 
extensions/tag

rake production radiant:extensions:tags:install

and it seemed to install fine except I get:

`tag_field' default partial not found!  on any page

I was wondering if I should change the tag_field.html.erb file name,  
maybe?


Am I missing something else?



Steven

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Tags extension: move to latest edge breaks db migration

2008-11-13 Thread Benny Degezelle
> The task rake db:migration breaks on a file of the Tags extensions if I
> move to latest edge. http://pastie.org/312887
>
>
> /simon


Hi Simon,

Quite sure that this is caused by a change in rails; rails 2.1.1 moved
module Dependencies to ActiveSupport::Dependencies
I'm swamped as ever at the moment, and not working with edge anytime soon..
Could you try this and let me know if it worked? Or even better fork and
send a pull request on github;

The patch would be to update
vendor/extensions/tags/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/dependencies.rb
so that the first line

module Dependencies

reads

module ActiveSupport::Dependencies

Not sure how to make this backwards-compatible though..

Regards,
Benny Degezelle

Gorilla webdesign
www.gorilla-webdesign.be
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Tags extension: move to latest edge breaks db migration

2008-11-12 Thread Simon Josi
The task rake db:migration breaks on a file of the Tags extensions if I
move to latest edge. http://pastie.org/312887


/simon


signature.asc
Description: PGP signature
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Re: [Radiant] Re: radiant-tags-extension with PostgreSQL?

2008-10-26 Thread Jay Levitt

Benny Degezelle wrote:

5. I also think I sent a pull request to everyone else.  Hope that's the
right thing to do.



Pull request received and handled.
I cherry-picked your commits instead of merging though, because i think the
tag_list_technorati stuff by ehaselwanter should go in a seperate branch.


Oops, you're right.. I was blindly merging everything.


Re your Weekly wacky suggestion; we coùld rename the extension (I'd prefer
radiant-metatags-extension), but that is not going to stop people from
referring to it as the tags extension, so I'm not too sure if that would
make googling for it easier?..


yeah, probably not, unless you also changed the [radius] tags themselves - 
e.g. r:metatags:each, r:metatags:cloud, etc.


I'm not sure if it's actually worth it; I was kinda thinking out loud.  I 
figured either someone would love the idea, or they'd hate it.  Or they'd 
think it's okay.


Jay
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Re: radiant-tags-extension with PostgreSQL?

2008-10-26 Thread Benny Degezelle
> 5. I also think I sent a pull request to everyone else.  Hope that's the
> right thing to do.


Pull request received and handled.
I cherry-picked your commits instead of merging though, because i think the
tag_list_technorati stuff by ehaselwanter should go in a seperate branch.

6. If all the power goes out somewhere, let me know.  It could possibly be
> my fault, but I'm pretty sure I canceled that in time.


I noticed the lights flickering, but the generators seem to have coped
succesfully ;)
Thanks for your contributions!

Re your Weekly wacky suggestion; we coùld rename the extension (I'd prefer
radiant-metatags-extension), but that is not going to stop people from
referring to it as the tags extension, so I'm not too sure if that would
make googling for it easier?..


Regards,
Benny
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] radiant-tags-extension with PostgreSQL?

2008-10-25 Thread Jay Levitt

Jay Levitt wrote:
I added Edmund Haselwanter's bug fix to my copy of the "tags" extension 
(thanks for that fix!), and now I'm trying to display a tag_cloud.  But 
I get this error instead of a cloud:


PGError: ERROR: column "meta_tags.id" must appear in the GROUP BY clause 
or be used in an aggregate function : SELECT meta_tags.*, count(*) as 
popularity FROM meta_tags JOIN taggings ON taggings.meta_tag_id = 
meta_tags.id GROUP BY taggings.meta_tag_id ORDER BY popularity DESC LIMIT 5


aaand, the answer is:

1. My wild guess at SQL was right; the :group should be

-  :group => "taggings.meta_tag_id",
+  :group => "meta_tags.id, meta_tags.name",

2. The "1 page is tagged with tag1" was because I hadn't read the help docs, 
and so I hadn't included tags.css in my page.


3. But that CSS is buggy anyway (at least on Firefox 3 Mac); it seems a 
better way to hide the unstyled list is:


- .tag_cloud span { position: absolute; left: -999px; width: 990px; }
+ .tag_cloud span { position: absolute; left: 0px; top: -500px; width: 1px; 
height: 1px; overflow: hidden; }



4. I have NO idea what I'm doing with git yet, but (thanks to Edmund's link 
to the tutorials), I think I just created a fork, which includes everyone 
else's changes to date, at:


http://github.com/jaylevitt/radiant-tags-extension.git

5. I also think I sent a pull request to everyone else.  Hope that's the 
right thing to do.


6. If all the power goes out somewhere, let me know.  It could possibly be 
my fault, but I'm pretty sure I canceled that in time.


Jay
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] radiant-tags-extension with PostgreSQL?

2008-10-25 Thread Jay Levitt
I added Edmund Haselwanter's bug fix to my copy of the "tags" extension 
(thanks for that fix!), and now I'm trying to display a tag_cloud.  But I 
get this error instead of a cloud:


PGError: ERROR: column "meta_tags.id" must appear in the GROUP BY clause or 
be used in an aggregate function : SELECT meta_tags.*, count(*) as 
popularity FROM meta_tags JOIN taggings ON taggings.meta_tag_id = 
meta_tags.id GROUP BY taggings.meta_tag_id ORDER BY popularity DESC LIMIT 5


If I try changing the ":group" clause in meta_tags.rb as follows:

-  :group => "taggings.meta_tag_id",
+  :group => "meta_tags.id, meta_tags.name",

then I get:

  "1 page is tagged with tag1
   1 page is tagged with tag2"

which is a little more verbose than I think a tag cloud oughta be :)

I'm not good enough with SQL to know what the right query is; can anyone 
lend a hand?


Jay Levitt
___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Bugfix and new tag for radiant-tags-extension

2008-10-07 Thread Haselwanter Edmund


On 07.10.2008, at 20:42, Jim Gay wrote:


Edmund,
Thanks for catching that.
I added in the complex strings stuff so it was my mistake.
Benny (github.com/jomz) has been managing this extension so you  
could fork the extension, make the changes, and send him the pull  
request.


So there is a kind of best practice doing this? Could you please guide  
me (and probably some others ;-) through this process? I'm fairly new  
to git/github.


While asking the question I thought of RTFM ;-) and there it is:

http://github.com/guides/fork-a-project-and-submit-your-modifications
http://github.com/guides/changing-your-origin
http://railsontherun.com/2008/3/3/how-to-use-github-and-submit-a-patch

1. I klick on the fork button on github (done)
2. clone it from there
3. add the old origin as e.g. upstream
4. make the changes
5. push to own repo
6. klick on the pull request button.

no that is community developing. great stuff

cu edi
--
DI Edmund Haselwanter, [EMAIL PROTECTED], http://edmund.haselwanter.com/



___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Bugfix and new tag for radiant-tags-extension

2008-10-07 Thread Jim Gay

Edmund,
Thanks for catching that.
I added in the complex strings stuff so it was my mistake.
Benny (github.com/jomz) has been managing this extension so you could  
fork the extension, make the changes, and send him the pull request.
tags is sorely lacking it tests/specs. On my list of things to do is  
spec all the behavior for tags.


-Jim

On Oct 7, 2008, at 1:39 PM, Haselwanter Edmund wrote:


Hi *,

I came across a smal bug in the radiant-tags-extension. What is the  
recommended way to provide the bug fix? Always directly contact the  
author? Its in the tag_list tag when using the complex mode. the  
string should be splited with MetaTag::DELIMITER and not with " ".


And i added a new tag tag_cloud_list which can be used to show all  
used tags (:limit => 100) in the sitebar. have a look at


http://edmund.haselwanter.com/en/blog to see it in action

the git diff:

diff --git a/app/models/radius_tags.rb b/app/models/radius_tags.rb
index 953bd48..5a25493 100644
--- a/app/models/radius_tags.rb
+++ b/app/models/radius_tags.rb
@@ -50,11 +50,25 @@ module RadiusTags
end
output += ""
  end
-
+
+  desc "Render a Tag list"
+  tag "tag_cloud_list" do |tag|
+tag_cloud = MetaTag.cloud({:limit => 100}).sort
+output = ""
+if tag_cloud.length > 0
+build_tag_cloud(tag_cloud, %w(size1 size2 size3 size4 size5  
size6 size7 size8 size9)) do |tag, cloud_class, amount|
+output += "\"#{tag_item_url(tag)}\" class=\"tag\">#{tag}(#{amount})"

+end
+else
+return "No tags found."
+end
+output += ""
+  end
+
  desc "List the current page's tags"
  tag "tag_list" do |tag|
output = []
-tag.locals.page.tag_list.split(" ").each {|t| output << "href=\"#{tag_item_url(t)}\" class=\"tag\">#{t}"}
+tag.locals.page.tag_list.split(MetaTag::DELIMITER).each {|t|  
output << "#{t}"}

output.join ", "
  end

@@ -172,4 +186,4 @@ module RadiusTags
options
  end

-end
\ No newline at end of file
+end

cu edi
--
DI Edmund Haselwanter, [EMAIL PROTECTED], http://edmund.haselwanter.com/

___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Bugfix and new tag for radiant-tags-extension

2008-10-07 Thread Haselwanter Edmund

Hi *,

I came across a smal bug in the radiant-tags-extension. What is the  
recommended way to provide the bug fix? Always directly contact the  
author? Its in the tag_list tag when using the complex mode. the  
string should be splited with MetaTag::DELIMITER and not with " ".


And i added a new tag tag_cloud_list which can be used to show all  
used tags (:limit => 100) in the sitebar. have a look at


http://edmund.haselwanter.com/en/blog to see it in action

the git diff:

diff --git a/app/models/radius_tags.rb b/app/models/radius_tags.rb
index 953bd48..5a25493 100644
--- a/app/models/radius_tags.rb
+++ b/app/models/radius_tags.rb
@@ -50,11 +50,25 @@ module RadiusTags
 end
 output += ""
   end
-
+
+  desc "Render a Tag list"
+  tag "tag_cloud_list" do |tag|
+tag_cloud = MetaTag.cloud({:limit => 100}).sort
+output = ""
+if tag_cloud.length > 0
+build_tag_cloud(tag_cloud, %w(size1 size2 size3 size4 size5  
size6 size7 size8 size9)) do |tag, cloud_class, amount|
+output += "\"#{tag_item_url(tag)}\" class=\"tag\">#{tag}(#{amount})"

+end
+else
+return "No tags found."
+end
+output += ""
+  end
+
   desc "List the current page's tags"
   tag "tag_list" do |tag|
 output = []
-tag.locals.page.tag_list.split(" ").each {|t| output << "\"#{tag_item_url(t)}\" class=\"tag\">#{t}"}
+tag.locals.page.tag_list.split(MetaTag::DELIMITER).each {|t|  
output << "#{t}"}

 output.join ", "
   end

@@ -172,4 +186,4 @@ module RadiusTags
 options
   end

-end
\ No newline at end of file
+end

cu edi
--
DI Edmund Haselwanter, [EMAIL PROTECTED], http://edmund.haselwanter.com/



___
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant