-
Notifications
You must be signed in to change notification settings - Fork 351
[ENHANCEMENT] structure tagging #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b8f66ee
to
32ad6b8
Compare
/** | ||
* @expectedException \InvalidArgumentException | ||
*/ | ||
public function testGetUndefinedStructureStructureTag() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StructureStructure
Why haven't you fixed the stuff you have mentioned in your comments? :-) |
sorry, this is part of a larger part of work. its still WIP |
32ad6b8
to
fbc9f03
Compare
*/ | ||
public function setIndexName($indexName) | ||
public function addStructureTag(StructureTag $structureTag) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we are adding support for adding tags to structures.
fbc9f03
to
7d1d996
Compare
@@ -667,7 +667,7 @@ private function changeState( | |||
$oldState = $node->getPropertyValue($statePropertyName); | |||
|
|||
if ($oldState === $state) { | |||
// do nothing | |||
$structure->setNodeState($state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The node state was not being set when there was no change, so media was not being indexed on updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
media was not updated? why that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the media bundle integrates with the search. it uses the PRE_SAVE event and the node state is always TEST unless this line is here.
7d1d996
to
a48f847
Compare
This PR allows structure tags to be defined in the structure template file. These tags can subsequently be used by other bundles. It also removes the unique priority constraint on tags and adds an "addTag" method to the Property class.
a48f847
to
01c6eaf
Compare
@@ -0,0 +1,40 @@ | |||
<?php | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing header
…/enhanced-structure-tagging Conflicts: src/Sulu/Bundle/CoreBundle/Resources/config/content.xml
Fixed template loading with empty blocks
Fixed template loading with empty blocks
This PR allows structure tags to be defined in the structure template
file. These tags can subsequently be used by other bundles.
Tasks:
Informations: