CVS edit link for al.ex
The Omniture Node module extends the existing Omniture Integration ("omniture") module. It adds the functionality to store Omniture/SiteCatalyst parameters for individual nodes, whereas the Omniture Integration module only defines site-wide parameters.
This integration is achieved thru an implementation of hook_omniture_variables().
"Link profiles" are an additional feature of this module. A link profile is a named set of specific Omniture parameters stored with a node. The basic purpose is to track clicks via Omnniture to a destination node that has a link profile set.
Using the omniture_node_l() function, a link to a node with a link profile can be created. This link will automatically create the SiteCatalyst JavaScript required to track link clicks in the browser.
I intend to release this module as dev version first. It's already under production at http://jaspersoft.com (the main sponsor) though.
-Alex
Comments
Comment #1
al.ex commentedComment #2
al.ex commentedComment #3
avpadernoUse a placeholder.
The code should just return an array containing values that needs to be added to the node object, not add the fields directly to the object.
The function should use
module_load_include(), but then it is not necessary to use a separate file that is used only from the module.Comment #4
al.ex commentedThanks KiamLaLuno.
1, 2, 4 √
on 3):
I refactored the code a bit, moved the schema arrays into a function.
The schema file gets loaded now with module_load_include() at hook_init().
The reason why I want to keep the schema in its own file for now is that the user should be able to modify/replace the schema isolated from the main module file. The file would still get overwritten during an update obviously if the user isn't careful. Ultimately, I want the schema to be stored in the database and not in a file. For now it works and was cheap.
-Alex
Comment #5
al.ex commentedComment #6
avpadernoTake in mind that
hook_init()is not called for cached pages; depending on the case, this could be a problem.Comment #7
al.ex commentedThanks KiamLaLuno for your fast processing. I will take your warning into account.
-Alex
Comment #9
avpaderno