Page 1 of 1

how to edit recently_updated tag behavior?

Posted: Mon Mar 14, 2011 2:40 am
by zeroality
I posted something here, in the General Discussion forums regarding the recently_updated tag.

To sum it up, it shows pages as updated when they aren't - for instance, if a page is re-ordered after creation then it will show the pages that it jumps over as being updated. Hopefully this will be fixed in a future version.

In the meantime, I am comfortable with editing the files for the tags (but am not fluent in PHP) so if anybody could tell me what php code to change/remove in the function.recently_updated.php file to stop this behavior, I would really appreciate it!

I've actually already edited that file myself, to change some things design-wise (regarding the UL/div/classes, etc) so no worries about "hey you should leave it alone" or anything like that.

Re: how to edit recently_updated tag behavior?

Posted: Mon Mar 14, 2011 11:37 am
by M@rtijn
zeroality wrote:...change/remove in the function.recently_updated.php file to stop this behavior, I would really appreciate it!

I've actually already edited that file myself, to change some things design-wise (regarding the UL/div/classes, etc) so no worries about "hey you should leave it alone" or anything like that.
You *should* leave the php files alone. Design-wise there is nothing to change there!

Changing, removing or adding things to php files are considered as 'core-hacks' and are not allowed/supported on this forum.

Re: how to edit recently_updated tag behavior?

Posted: Mon Mar 14, 2011 2:37 pm
by zeroality
Should I post in the Developer forum instead?

I mean, moving pages to re-order them in the page listing for the sake of convenience is not updating them...

Besides, it's not like I can't grab the CMSMS package and re-upload the file if needed.

And yes, there was something to change. The div wrapping the list was unnecessary (as far as my design was concerned). There was no other way to change that other than editing the file, as far as I could tell.

All I'm trying to do is fix something and you guys are the best people to ask since you know the software.

Sorry if that came out sounding rude but it's almost my bedtime. :)

Re: how to edit recently_updated tag behavior?

Posted: Mon Mar 14, 2011 7:17 pm
by Dr.CSS
You could always fork it and make your own 'tag' to do what you want...

Re: how to edit recently_updated tag behavior?

Posted: Thu Mar 17, 2011 6:04 am
by zeroality
Thanks.

My apologies. I wasn't aware of the notice posted 4 months ago disallowing the posting of hacks of CMSMS/modules, which I suppose this squarely falls under.

I'll try and muck my way through best as I can. Thanks again.