Closed (won't fix)
Project:
Rep[lacement]Tags
Version:
5.x-1.10
Component:
RepTag .tags module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2008 at 01:01 UTC
Updated:
3 Feb 2013 at 18:20 UTC
Hi, trying to build an additional tags module I have a problem, because my process is called everytime 3 times when a node is involved which contains a valid replacement mark: I guess this is happen during global _process for fields "text?", "teaser", "body".
What I do not understand is, why is it allways called for all fields even e.g. if only teaser is shown. I want to add some js-inline stuff with
drupal_add_js('my script', 'inline');
and by this, its allways included 3 times to the head section :-( also I guess it slows down system speed if everything is rendered 3 times even it is not used ?!
Any ideas, help would be nice.
Thanx Tom
Comments
Comment #1
Tom Freudenberg commentedHi tried to fix above scenario I have done this:
In "reptag_process.inc" line 126 ff. is
Now I break at then end of first loop with "break;" so that the "foreach" will only handle element [0] of $fields. Everything works fine for me now and a ll modules/tags.libraries are called only once.
Does this makes sence ? Is there something which is missed now ?
Thx for comment
Tom
Comment #2
duaelfrThis version of Rep[lacement]Tags is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.