Quote from: xyzvisual at Dec 21, 2006, 03:28 PM
you need to make a querry to the database for this
$modx->db->update...
I might be wrong, but won’t that modify the content itself permanently? Won’t that also be a problem once the content is edited the next time, since some anchors are already there?
Since I’ll have editors who are pretty much ignorant in HTML modifing that content, I’m trying to keep the content block as lean as possible.
If I had the option of of some sort of an "array" of content blocks, I could’ve added the rest of my HTML code in templates, but since I have only one content block I think something more in the direction of a dynamic "pre-rendereing" processing would be more suitable.
Quote from: sottwell at Dec 21, 2006, 03:29 PM
If you need to do this dynamically, use a plugin. That can modify the page as it’s being parsed.
From what I’ve read I’m starting to think that’s my only option...
but in that case, I have two more questions:
1. are there any such plugins already available somewhere, or should i start building one from scratch? Any pointers will be be appreciated.
2. will I be able to use any caching on this page?
cheers and thx for the quick reply.
Edit: Ok, I think I found the answers to both questions. Cheers.