Open mhulse opened 11 years ago
Should we rename all the parameters?
Currently, they are: parent
, section
, and page
.
Also, should page
change to the story ID just because we can get it for free? We can get story specific ads on the blogs with a custom field, so that negates the ID being needed, but might be helpful in the future. Also does an ID show on blog section fronts? If not, we're golden: we can use a Boolean check on story ID to determine if it's a story page or not.
Should we rename all the parameters? Currently, they are:
parent
,section
, andpage
.
I think section
is the only one that's needing change. It's the only one that does not match our models:
Also, target is nice and generic, whereas the other are already semi-generic or generic enough.
The motivation to change section
is because we might not always be passing an actual "section" to the code.
On the other hand, I'm open to name changing ideas, though, I think they should try to match the back end model names (or not?). I'm open to discussion.
Also, should page change to the story ID just because we can get it for free? We can get story specific ads on the blogs with a custom field, so that negates the ID being needed, but might be helpful in the future. Also does an ID show on blog section fronts? If not, we're golden: we can use a Boolean check on story ID to determine if it's a story page or not.
Not sure if I completely follow here. Sorry. :frowning:
Are you asking if page
label should get changed to something like story_id
?
My gut is telling me that we should not focus on how we get the code to the JS/Django app, as the possibilities are endless in terms of how to handle that. I think we can't go wrong if we keep name generic and allow for flexibility in terms of data that gets passed around.
Sorry if I'm not understanding your question.
Related: New blog: Storytellers
As noted in that issue, we had talked about a custom field on stories where we assign the "target" value.
For other systems, like DTI/Lighting, we could create a custom InCopy field to do the same (name it something like WebAdTarget), or we could just pass the story ID (or even the story slug, example: web.firefighters-2.0701
).
I can even concat values to make up things.
Going back to the target
, if it's renamed then I think it makes more logical sense when passing in story IDs, slugs or custom field values.
Ditto :+1:
This can be done at any time. Just need to update all the bulldog templates calling the the
aq_manager
JS.