Nov 21, 2008, 07:29 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Modifications to allow weblinks to have META Keywords and template variables.  (Read 3885 times)
0 Members and 1 Guest are viewing this topic.
steph
Member
**
Posts: 85


WWW
« on: Jan 28, 2006, 12:43 PM »

17/12/2006. I've posted the mods for 0.9.5 in a reply further down the page.

05/12/2006. The original core code modification was for 0.9.1. I've posted the mod for MODx-095rc3-rev2066 below.

Hi all.

I've modified /manager/actions/dynamic/mutate_content.dynamic.action.php to allow weblinks to have META Keywords and template variables.

The changes were small:
a) Modified some conditions to allow the META Keywords tab and the TVs to show for weblinks in the manager.
b) Removed an html hidden field that prevented weblinks being associated with a template.

The changes were made to allow me to categorise and group weblinks with the aid of a modified DropMenu snippet, which can filter docs by a regexp on their keywords or a TV. http://modxcms.com/forums/index.php/topic,2588.0.html

Please let me know whether these changes could have any derogatory effects on the operation of MODx.

Steph

P.S. I also changed the description field to a textarea, simply to allow more of it to be seen.

reply url added

* mutate_content.dynamic.action.php.zip (11.16 KB - downloaded 287 times.)
« Last Edit: Jan 30, 2007, 06:31 AM by zi » Logged

steph
Member
**
Posts: 85


WWW
« Reply #1 on: Dec 05, 2006, 02:17 PM »

Here's the modified core code for MODx-095rc3-rev2066 along with the original so you can do a comparison to see what's changed. (remove the .txt extension).

mutate_content.dynamic.php is the new one.
mutate_content.dynamic.php.orig is the original.

It goes in manager/actions/.

Aargh! It's not letting me post the damn thing. "Sorry! There is already an attachment with the same filename as the one you tried to upload. Please rename the file and try again." No, it's not! This is the 3rd different name I've tried!

...

If the God of quirks helps me, they'll be posted below.
Logged

steph
Member
**
Posts: 85


WWW
« Reply #2 on: Dec 05, 2006, 02:20 PM »

Remove the .1 from the filename. I had to add this to allow me to post it.

* mutate_content.dynamic.php.1.zip (22.86 KB - downloaded 146 times.)
Logged

doze
Coding Team
*
Posts: 3,212


....Boom!


« Reply #3 on: Dec 05, 2006, 07:20 PM »

I have wondered that why TV's were disabled from the weblinks in the firstplace.. I know that they are not processed when weblink is accessed, but that doesnt mean that they would not be usefull to have. When you have TV's in weblinks, you can forexample build categorized link list with ditto very easily.. and so on. I suggest to add this change to the core.
Logged

MODxWiki || Please, list wiki worthy material here!
heliotrope
Coding Team
*
Posts: 2,433


WWW
« Reply #4 on: Dec 05, 2006, 07:24 PM »

I second that Doze.

:-)
Logged

Dr. Scotty Delicious
Coding Team
*
Posts: 1,172


Dr. of Fine Pirate Arts


WWW
« Reply #5 on: Dec 05, 2006, 11:44 PM »

+1 on that for me too.
I have been trying to add categories to my "Friendly Pirates" (links section) as they are varied in content type.

-sD-
Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.
OpenGeek
MODx Co-Founder
Foundation
*
Posts: 5,007


looking a little more like my avatar again...


WWW
« Reply #6 on: Dec 06, 2006, 12:31 AM »

This did not make it into 0.9.5, which was released just a few short hours ago.  But I'm definitely all in favor of including this, and we can get it into 0.9.5.1 which will follow shortly, once we have more translations completed.
Logged

Jason Coward
MODx Co-Founder
xPDO Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual.
  — Frank Herbert
zi
MODx Special Forces /
Administrator
*
Posts: 3,006


May Peace Be On You


WWW
« Reply #7 on: Dec 06, 2006, 04:42 AM »

Very nice work work steph! Smiley

thanks for sharing.

regards.
Logged

“Internet Explorer’s CSS rendering: WYSIWTF”. — someone genius
--------------------------------------------------
steph
Member
**
Posts: 85


WWW
« Reply #8 on: Dec 06, 2006, 07:22 AM »

Thanks.

Please note that I've not tested my changes to MODx-095rc3-rev2066. I made these in response to a request from spoetnik at http://modxcms.com/forums/index.php/topic,2588.30.html.

I'm running 0.9.2.2 so I know the changes are ok with that version. The changes I made to 095rc3-rev2066 were identical to those I made to 0.9.1 (and 0.9.2.2) so provided the new mutate_content.dynamic.php and mutate_content.dynamic.action.php don't differ too much, there should not be a problem. I'm waiting to hear a response from spoetnik on the other thread to see whether it's all ok.

Since 0.9.5 has been released I'll upgrade, make the mod for that version, test and post when ready. This should be by the end of the week.

Btw, someone needs to update the button on the homepage to indicate the change from 0.9.2 to 0.9.5.
Logged

rthrash
Foundation
*
Posts: 9,514



WWW
« Reply #9 on: Dec 06, 2006, 09:07 AM »

Update done. Thanks!
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
steph
Member
**
Posts: 85


WWW
« Reply #10 on: Dec 17, 2006, 10:21 AM »

Here's the 0.9.5 version. Rename to mutate_content.dynamic.php and place in manager/actions/.

* mutate_content.dynamic.php.1.txt (65.13 KB - downloaded 173 times.)
Logged

johnvb
Jr. Member
*
Posts: 48


WWW
« Reply #11 on: Dec 20, 2006, 02:56 PM »

This is something I've hoped for for a while. Thanks!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!