Posted by nig on September 1, 2008 at 7:31am
Jump to:
| Project: | Inline |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
What is the best way of changing "link=new" to "link=node" in existing tags?
I have a lot of inline images, inserted with img_assist. They all use link=new. Recently I have installed lightbox2, which is working fine. link=node is now necessary to make the link back to the image page work properly.
Can I do a refresh, or flush, of existing inline tags?
I had a look at node_find_replace module, but it does not seem able to replace part strings. I ran it and it did nothing.
Any ideas please?
Nigel
www.headingley.org
Comments
#1
I'm sorry, there is no such functionality in Inline yet. However, we have to implement at least a low-level function that allows this, because Inline tags changed between 1.x and 2.x.
That said, for this request as well as an upgrade path to 2.x, we cannot re-use inline_get_macros(), since it assumes the new syntax already. However, my initial thought was to move everything but the regular expression of this function into a new (private) helper function so that inline_get_macros() can be invoked with any inline tag pattern, including old-style (1.x) ones.
Regarding upgrade path to 2.x, we already have inline_alter_macros() and inline_build_macro() to replace existing tags.
#2
#3