Skip to content
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

ui: BeFront helper metaAll and metaDc not correct for sections #315

Closed
stefanorosanelli opened this issue Sep 5, 2012 · 2 comments
Closed

Comments

@stefanorosanelli
Copy link
Member

$beFront->metaAll() and $beFront->metaDc()
don't give section metadata but first contents metadata when you are on a section
[[BR]]

example: http://docs.bedita.com/core -- meta "description", "DC:description",....and all other metadata relate to first document in section not to section
[[BR]]

look at metadata for first document: there are no differences

@ghost ghost assigned didoda Sep 5, 2012
@didoda
Copy link
Member

didoda commented Sep 5, 2012

0713b2e Fix in get_description. If contentRequested then get first object in section metadata, section otherwise.
To test publication root metadata, override pagesController method homePage().
I used the sample frontend bookish, with following method:

public function homePage() {
    $filter = array("object_type_id" => Configure::read("objectTypes.section.id"));
    $child = $this->BeTree->getChildren($this->publication["id"], $this->getStatus(), $filter, null, true, 1, 1);
    $this->action = 'section';
    $this->section($this->publication["id"]);
}

@batopa
Copy link
Member

batopa commented Sep 5, 2012

46c7652 merged to ulmus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants