You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Gaurav <ga...@gmail.com> on 2013/12/06 14:45:04 UTC
Change in archive structure
Hello,
The archives which are now show as in calender. There are some
shortcoming of that is we can't see the whole list of blogs month and
year wise.
There can have some sort of tree structure or we can have some different
macro, so we can redesign the archives page as user want.
Tree Structure
>2013
>Jan
>Blog1
>Blog2
>March
>2013
>April
>Blg4
Thanks
Gaurav
Re: Change in archive structure
Posted by Gaurav <ga...@gmail.com>.
Hello Glen,
I got your point about the macro should not be heavily customized. The
point I was mentioning was that, In the tree structure I have to sort
the blogs by date (like first yearly then monthly) and in velocity I am
having difficulty in sorting the blog list by date. In Java I think
Collections.sort can help us out in this. I was thinking of class, as
the #showWeblogEntryCalendar macro produce the html in java in table
format. If I can sort by date in Java and then call that method in the
macro.
The JavaScript/html part come in at last, after we have the sorted list
by date. Then we can pass each entry in html with javascript for showing
it like tree structure.
Thanks
Gaurav
On Tuesday 10 December 2013 04:06 PM, Glen Mazza wrote:
> I doubt you'll need any class files, just add your macro to
> roller/trunk/app/src/main/webapp/WEB-INF/velocity/weblog.vm. Note a
> macro may not be useful if users would want to heavily customize it
> (add #classes or use different colors, etc., or render it differently
> based on theme being used.)--then again, maybe parameters can be added
> for that functionality in the future if users would want. I haven't
> analyzed it but I suspect most (useful) macros are for things that
> don't have much/any UI customization to them -- e.g., HTML <head/>
> elements.
>
> What you wish to contribute might be better in JavaScript--I don't
> know whether Velocity will work for dynamically creating JavaScript (I
> would think so but haven't looked into it.)
>
> Glen
>
> On 12/09/2013 11:44 PM, Gaurav wrote:
>> Hello,
>>
>> I was looking at this and was thinking of sorting articles by date in
>> velocity, but facing some difficulty in it. Can you recommend me how
>> to go with this and if I have to make new class file and write some
>> code for this, where I have to write all this. I will be thankful if
>> you can get me some help or any resources in roller of study its
>> structure.
>>
>> Thanks
>> Gaurav
>>
>> On Tuesday 10 December 2013 07:03 AM, Glen Mazza wrote:
>>> Yes, enter a JIRA and attach a patch (svn diff -u > myPatch.patch
>>> will do).
>>>
>>> Thanks,
>>> Glen
>>>
>>> On 12/09/2013 03:47 AM, Gaurav wrote:
>>>> Hello Glen,
>>>>
>>>> Actually, you are right about the importance of this, as users
>>>> usually searchby date for any blog, unless you are blogging about a
>>>> particular topic on a certain day of the week.
>>>> I was also thinking about the tree structure in side menu, rather
>>>> than a page. I can contribute to this and make a new macro so, user
>>>> can include that in their side menu. Just want to know what steps I
>>>> have to follow to add this enhancement/patch to Roller. Do I have
>>>> to file any JIRA ? Can you please guide me into this.
>>>>
>>>> Thanks
>>>> Gaurav
>>>>
>>>>
>>>> On Saturday 07 December 2013 07:20 AM, Glen Mazza wrote:
>>>>> Hmm, I might argue that the date a blog article is posted is of
>>>>> secondary importance to its content, e.g., I group my blog entries
>>>>> by subject:
>>>>> http://www.jroller.com/gmazza/entry/blog_article_index, date is
>>>>> largely irrelevant. Wouldn't your tree view be more useful if it
>>>>> was broken up by category and blog articles underneath instead of
>>>>> by dates?
>>>>>
>>>>> Another problem with emphasizing dates is that they make blogs
>>>>> look obsolete more quickly, because sometimes months go by at a
>>>>> time before someone blogs again, and a date archive then makes the
>>>>> blog look inactive. Having lists by category gives a blog a much
>>>>> longer shelf life, and doesn't "punish" a blogger who maintains
>>>>> his older entries instead of just entering in new entries.
>>>>>
>>>>> The blog archive page is probably seldom used today (you may be
>>>>> better off removing it), the tree view you're contemplating might
>>>>> be better in a side menu of a blog (just like here:
>>>>> http://coheigea.blogspot.com/ [1]). A macro that would provide
>>>>> the data allowing something like [1] to be constructed would be a
>>>>> nice enhancement to Roller (but, actually, we may already be able
>>>>> to support that--I'm not sure.) Patches to Roller JIRA welcome.
>>>>>
>>>>> The current archive page *could* be useful if you're always
>>>>> blogging about a particular topic on a certain day of the week. If
>>>>> Wednesdays you're always blogging about X and Fridays always Y a
>>>>> calendar view does a better job of allowing someone to get to all
>>>>> "X" or "Y" articles better than the tree view in [1].
>>>>>
>>>>> Regards,
>>>>> Glen
>>>>>
>>>>>
>>>>> On 12/06/2013 08:45 AM, Gaurav wrote:
>>>>>> Hello,
>>>>>>
>>>>>> The archives which are now show as in calender. There are some
>>>>>> shortcoming of that is we can't see the whole list of blogs month
>>>>>> and year wise.
>>>>>> There can have some sort of tree structure or we can have some
>>>>>> different macro, so we can redesign the archives page as user want.
>>>>>>
>>>>>> Tree Structure
>>>>>>
>>>>>> >2013
>>>>>> >Jan
>>>>>> >Blog1
>>>>>> >Blog2
>>>>>> >March
>>>>>> >2013
>>>>>> >April
>>>>>> >Blg4
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> Gaurav
>>>>>
>>>>
>>>>
>>>
>>
>>
>
Re: Change in archive structure
Posted by Glen Mazza <gl...@gmail.com>.
I doubt you'll need any class files, just add your macro to
roller/trunk/app/src/main/webapp/WEB-INF/velocity/weblog.vm. Note a
macro may not be useful if users would want to heavily customize it (add
#classes or use different colors, etc., or render it differently based
on theme being used.)--then again, maybe parameters can be added for
that functionality in the future if users would want. I haven't
analyzed it but I suspect most (useful) macros are for things that don't
have much/any UI customization to them -- e.g., HTML <head/> elements.
What you wish to contribute might be better in JavaScript--I don't know
whether Velocity will work for dynamically creating JavaScript (I would
think so but haven't looked into it.)
Glen
On 12/09/2013 11:44 PM, Gaurav wrote:
> Hello,
>
> I was looking at this and was thinking of sorting articles by date in
> velocity, but facing some difficulty in it. Can you recommend me how
> to go with this and if I have to make new class file and write some
> code for this, where I have to write all this. I will be thankful if
> you can get me some help or any resources in roller of study its
> structure.
>
> Thanks
> Gaurav
>
> On Tuesday 10 December 2013 07:03 AM, Glen Mazza wrote:
>> Yes, enter a JIRA and attach a patch (svn diff -u > myPatch.patch
>> will do).
>>
>> Thanks,
>> Glen
>>
>> On 12/09/2013 03:47 AM, Gaurav wrote:
>>> Hello Glen,
>>>
>>> Actually, you are right about the importance of this, as users
>>> usually searchby date for any blog, unless you are blogging about a
>>> particular topic on a certain day of the week.
>>> I was also thinking about the tree structure in side menu, rather
>>> than a page. I can contribute to this and make a new macro so, user
>>> can include that in their side menu. Just want to know what steps I
>>> have to follow to add this enhancement/patch to Roller. Do I have to
>>> file any JIRA ? Can you please guide me into this.
>>>
>>> Thanks
>>> Gaurav
>>>
>>>
>>> On Saturday 07 December 2013 07:20 AM, Glen Mazza wrote:
>>>> Hmm, I might argue that the date a blog article is posted is of
>>>> secondary importance to its content, e.g., I group my blog entries
>>>> by subject: http://www.jroller.com/gmazza/entry/blog_article_index,
>>>> date is largely irrelevant. Wouldn't your tree view be more useful
>>>> if it was broken up by category and blog articles underneath
>>>> instead of by dates?
>>>>
>>>> Another problem with emphasizing dates is that they make blogs look
>>>> obsolete more quickly, because sometimes months go by at a time
>>>> before someone blogs again, and a date archive then makes the blog
>>>> look inactive. Having lists by category gives a blog a much longer
>>>> shelf life, and doesn't "punish" a blogger who maintains his older
>>>> entries instead of just entering in new entries.
>>>>
>>>> The blog archive page is probably seldom used today (you may be
>>>> better off removing it), the tree view you're contemplating might
>>>> be better in a side menu of a blog (just like here:
>>>> http://coheigea.blogspot.com/ [1]). A macro that would provide the
>>>> data allowing something like [1] to be constructed would be a nice
>>>> enhancement to Roller (but, actually, we may already be able to
>>>> support that--I'm not sure.) Patches to Roller JIRA welcome.
>>>>
>>>> The current archive page *could* be useful if you're always
>>>> blogging about a particular topic on a certain day of the week. If
>>>> Wednesdays you're always blogging about X and Fridays always Y a
>>>> calendar view does a better job of allowing someone to get to all
>>>> "X" or "Y" articles better than the tree view in [1].
>>>>
>>>> Regards,
>>>> Glen
>>>>
>>>>
>>>> On 12/06/2013 08:45 AM, Gaurav wrote:
>>>>> Hello,
>>>>>
>>>>> The archives which are now show as in calender. There are some
>>>>> shortcoming of that is we can't see the whole list of blogs month
>>>>> and year wise.
>>>>> There can have some sort of tree structure or we can have some
>>>>> different macro, so we can redesign the archives page as user want.
>>>>>
>>>>> Tree Structure
>>>>>
>>>>> >2013
>>>>> >Jan
>>>>> >Blog1
>>>>> >Blog2
>>>>> >March
>>>>> >2013
>>>>> >April
>>>>> >Blg4
>>>>>
>>>>>
>>>>> Thanks
>>>>> Gaurav
>>>>
>>>
>>>
>>
>
>
Re: Change in archive structure
Posted by Gaurav <ga...@gmail.com>.
Hello,
I was looking at this and was thinking of sorting articles by date in
velocity, but facing some difficulty in it. Can you recommend me how to
go with this and if I have to make new class file and write some code
for this, where I have to write all this. I will be thankful if you can
get me some help or any resources in roller of study its structure.
Thanks
Gaurav
On Tuesday 10 December 2013 07:03 AM, Glen Mazza wrote:
> Yes, enter a JIRA and attach a patch (svn diff -u > myPatch.patch will
> do).
>
> Thanks,
> Glen
>
> On 12/09/2013 03:47 AM, Gaurav wrote:
>> Hello Glen,
>>
>> Actually, you are right about the importance of this, as users
>> usually searchby date for any blog, unless you are blogging about a
>> particular topic on a certain day of the week.
>> I was also thinking about the tree structure in side menu, rather
>> than a page. I can contribute to this and make a new macro so, user
>> can include that in their side menu. Just want to know what steps I
>> have to follow to add this enhancement/patch to Roller. Do I have to
>> file any JIRA ? Can you please guide me into this.
>>
>> Thanks
>> Gaurav
>>
>>
>> On Saturday 07 December 2013 07:20 AM, Glen Mazza wrote:
>>> Hmm, I might argue that the date a blog article is posted is of
>>> secondary importance to its content, e.g., I group my blog entries
>>> by subject: http://www.jroller.com/gmazza/entry/blog_article_index,
>>> date is largely irrelevant. Wouldn't your tree view be more useful
>>> if it was broken up by category and blog articles underneath instead
>>> of by dates?
>>>
>>> Another problem with emphasizing dates is that they make blogs look
>>> obsolete more quickly, because sometimes months go by at a time
>>> before someone blogs again, and a date archive then makes the blog
>>> look inactive. Having lists by category gives a blog a much longer
>>> shelf life, and doesn't "punish" a blogger who maintains his older
>>> entries instead of just entering in new entries.
>>>
>>> The blog archive page is probably seldom used today (you may be
>>> better off removing it), the tree view you're contemplating might be
>>> better in a side menu of a blog (just like here:
>>> http://coheigea.blogspot.com/ [1]). A macro that would provide the
>>> data allowing something like [1] to be constructed would be a nice
>>> enhancement to Roller (but, actually, we may already be able to
>>> support that--I'm not sure.) Patches to Roller JIRA welcome.
>>>
>>> The current archive page *could* be useful if you're always blogging
>>> about a particular topic on a certain day of the week. If Wednesdays
>>> you're always blogging about X and Fridays always Y a calendar view
>>> does a better job of allowing someone to get to all "X" or "Y"
>>> articles better than the tree view in [1].
>>>
>>> Regards,
>>> Glen
>>>
>>>
>>> On 12/06/2013 08:45 AM, Gaurav wrote:
>>>> Hello,
>>>>
>>>> The archives which are now show as in calender. There are some
>>>> shortcoming of that is we can't see the whole list of blogs month
>>>> and year wise.
>>>> There can have some sort of tree structure or we can have some
>>>> different macro, so we can redesign the archives page as user want.
>>>>
>>>> Tree Structure
>>>>
>>>> >2013
>>>> >Jan
>>>> >Blog1
>>>> >Blog2
>>>> >March
>>>> >2013
>>>> >April
>>>> >Blg4
>>>>
>>>>
>>>> Thanks
>>>> Gaurav
>>>
>>
>>
>
--
Regards,
*Gaurav Saini*
/Developer, Digital Marketing and Pursuing B.Tech/
/Viithiisys Technologies/
/Email: gauravsaini03@gmail.com, gaurav.saini@viithiisys.com/
/Mobile: +91-9915346686/
Re: Change in archive structure
Posted by Glen Mazza <gl...@gmail.com>.
Yes, enter a JIRA and attach a patch (svn diff -u > myPatch.patch will do).
Thanks,
Glen
On 12/09/2013 03:47 AM, Gaurav wrote:
> Hello Glen,
>
> Actually, you are right about the importance of this, as users usually
> searchby date for any blog, unless you are blogging about a particular
> topic on a certain day of the week.
> I was also thinking about the tree structure in side menu, rather than
> a page. I can contribute to this and make a new macro so, user can
> include that in their side menu. Just want to know what steps I have
> to follow to add this enhancement/patch to Roller. Do I have to file
> any JIRA ? Can you please guide me into this.
>
> Thanks
> Gaurav
>
>
> On Saturday 07 December 2013 07:20 AM, Glen Mazza wrote:
>> Hmm, I might argue that the date a blog article is posted is of
>> secondary importance to its content, e.g., I group my blog entries by
>> subject: http://www.jroller.com/gmazza/entry/blog_article_index, date
>> is largely irrelevant. Wouldn't your tree view be more useful if it
>> was broken up by category and blog articles underneath instead of by
>> dates?
>>
>> Another problem with emphasizing dates is that they make blogs look
>> obsolete more quickly, because sometimes months go by at a time
>> before someone blogs again, and a date archive then makes the blog
>> look inactive. Having lists by category gives a blog a much longer
>> shelf life, and doesn't "punish" a blogger who maintains his older
>> entries instead of just entering in new entries.
>>
>> The blog archive page is probably seldom used today (you may be
>> better off removing it), the tree view you're contemplating might be
>> better in a side menu of a blog (just like here:
>> http://coheigea.blogspot.com/ [1]). A macro that would provide the
>> data allowing something like [1] to be constructed would be a nice
>> enhancement to Roller (but, actually, we may already be able to
>> support that--I'm not sure.) Patches to Roller JIRA welcome.
>>
>> The current archive page *could* be useful if you're always blogging
>> about a particular topic on a certain day of the week. If Wednesdays
>> you're always blogging about X and Fridays always Y a calendar view
>> does a better job of allowing someone to get to all "X" or "Y"
>> articles better than the tree view in [1].
>>
>> Regards,
>> Glen
>>
>>
>> On 12/06/2013 08:45 AM, Gaurav wrote:
>>> Hello,
>>>
>>> The archives which are now show as in calender. There are some
>>> shortcoming of that is we can't see the whole list of blogs month
>>> and year wise.
>>> There can have some sort of tree structure or we can have some
>>> different macro, so we can redesign the archives page as user want.
>>>
>>> Tree Structure
>>>
>>> >2013
>>> >Jan
>>> >Blog1
>>> >Blog2
>>> >March
>>> >2013
>>> >April
>>> >Blg4
>>>
>>>
>>> Thanks
>>> Gaurav
>>
>
>
Re: Change in archive structure
Posted by Gaurav <ga...@gmail.com>.
Hello Glen,
Actually, you are right about the importance of this, as users usually
searchby date for any blog, unless you are blogging about a particular
topic on a certain day of the week.
I was also thinking about the tree structure in side menu, rather than a
page. I can contribute to this and make a new macro so, user can include
that in their side menu. Just want to know what steps I have to follow
to add this enhancement/patch to Roller. Do I have to file any JIRA ?
Can you please guide me into this.
Thanks
Gaurav
On Saturday 07 December 2013 07:20 AM, Glen Mazza wrote:
> Hmm, I might argue that the date a blog article is posted is of
> secondary importance to its content, e.g., I group my blog entries by
> subject: http://www.jroller.com/gmazza/entry/blog_article_index, date
> is largely irrelevant. Wouldn't your tree view be more useful if it
> was broken up by category and blog articles underneath instead of by
> dates?
>
> Another problem with emphasizing dates is that they make blogs look
> obsolete more quickly, because sometimes months go by at a time before
> someone blogs again, and a date archive then makes the blog look
> inactive. Having lists by category gives a blog a much longer shelf
> life, and doesn't "punish" a blogger who maintains his older entries
> instead of just entering in new entries.
>
> The blog archive page is probably seldom used today (you may be better
> off removing it), the tree view you're contemplating might be better
> in a side menu of a blog (just like here:
> http://coheigea.blogspot.com/ [1]). A macro that would provide the
> data allowing something like [1] to be constructed would be a nice
> enhancement to Roller (but, actually, we may already be able to
> support that--I'm not sure.) Patches to Roller JIRA welcome.
>
> The current archive page *could* be useful if you're always blogging
> about a particular topic on a certain day of the week. If Wednesdays
> you're always blogging about X and Fridays always Y a calendar view
> does a better job of allowing someone to get to all "X" or "Y"
> articles better than the tree view in [1].
>
> Regards,
> Glen
>
>
> On 12/06/2013 08:45 AM, Gaurav wrote:
>> Hello,
>>
>> The archives which are now show as in calender. There are some
>> shortcoming of that is we can't see the whole list of blogs month and
>> year wise.
>> There can have some sort of tree structure or we can have some
>> different macro, so we can redesign the archives page as user want.
>>
>> Tree Structure
>>
>> >2013
>> >Jan
>> >Blog1
>> >Blog2
>> >March
>> >2013
>> >April
>> >Blg4
>>
>>
>> Thanks
>> Gaurav
>
--
Regards,
*Gaurav Saini*
/Developer, Digital Marketing and Pursuing B.Tech/
/Viithiisys Technologies/
/Email: gauravsaini03@gmail.com, gaurav.saini@viithiisys.com/
/Mobile: +91-9915346686/
Re: Change in archive structure
Posted by Glen Mazza <gl...@gmail.com>.
Hmm, I might argue that the date a blog article is posted is of
secondary importance to its content, e.g., I group my blog entries by
subject: http://www.jroller.com/gmazza/entry/blog_article_index, date is
largely irrelevant. Wouldn't your tree view be more useful if it was
broken up by category and blog articles underneath instead of by dates?
Another problem with emphasizing dates is that they make blogs look
obsolete more quickly, because sometimes months go by at a time before
someone blogs again, and a date archive then makes the blog look
inactive. Having lists by category gives a blog a much longer shelf
life, and doesn't "punish" a blogger who maintains his older entries
instead of just entering in new entries.
The blog archive page is probably seldom used today (you may be better
off removing it), the tree view you're contemplating might be better in
a side menu of a blog (just like here: http://coheigea.blogspot.com/
[1]). A macro that would provide the data allowing something like [1]
to be constructed would be a nice enhancement to Roller (but, actually,
we may already be able to support that--I'm not sure.) Patches to
Roller JIRA welcome.
The current archive page *could* be useful if you're always blogging
about a particular topic on a certain day of the week. If Wednesdays
you're always blogging about X and Fridays always Y a calendar view does
a better job of allowing someone to get to all "X" or "Y" articles
better than the tree view in [1].
Regards,
Glen
On 12/06/2013 08:45 AM, Gaurav wrote:
> Hello,
>
> The archives which are now show as in calender. There are some
> shortcoming of that is we can't see the whole list of blogs month and
> year wise.
> There can have some sort of tree structure or we can have some
> different macro, so we can redesign the archives page as user want.
>
> Tree Structure
>
> >2013
> >Jan
> >Blog1
> >Blog2
> >March
> >2013
> >April
> >Blg4
>
>
> Thanks
> Gaurav