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

Meta Description / Meta Title #135

Closed
Hauge opened this issue May 8, 2013 · 9 comments
Closed

Meta Description / Meta Title #135

Hauge opened this issue May 8, 2013 · 9 comments
Labels
enhancement This issue is about an enhancement (aka new feature) frontend This seems to be a bug in the frontend notyetbepatient This ticket has been postponed into the future question We have a question, please elaborate on the ticket.

Comments

@Hauge
Copy link

Hauge commented May 8, 2013

Hallo,
ich empfinde es als durchaus wichtig, dass man für die Detailansicht zumindest MetaTitle und MetaDescription angeben kann.
Wenn es dann perfekt sein soll, dann wäre eine Lösung für die Listenansicht mit Filter echt toll.

@andreasisaak
Copy link
Contributor

Das kannst du doch auch im Template machen? Im BE haben wir bisher keine saubere Möglichkeit gefunden die alle Fälle abdeckt.

@andreasisaak
Copy link
Contributor

Btw. der Meta Title wird bereits von MetaModels verwendet. Ich habe ihn hier überall im Header stehen. Es wäre also nur noch die Description

@Hauge
Copy link
Author

Hauge commented May 9, 2013

$GLOBALS['TL_KEYWORDS'] .= ' ' . $metakeywords;
$objPage->description = $metadescription;
$objPage->pageTitle = $metatitle;

das würde evtl. in der Detailansicht funktionieren (ungetestet) - allerdings wäre auch eine Lösung für die Listenansicht (gefiltert) durchaus interessant.

@discordier
Copy link
Member

Die Anforderungen die an eine solche Implementierung im Backend gestellt werden, sind zu komplex.
Das geht mit obigen Zeilen wunderbar einfach im Template.

Gerade bei der Listenansicht wird es ein zu komplexes Unterfangen, da hierbei ggf. die Attribute konkateniert, in einen Fyllwert eingebaut werden myssen, oder aehnliches.

Ich stelle das ticket mal auf "notyetbepatient", bis mir eine saubere Idee kommt, wie man das konfigurieren koennte, oder aber jemand eine saubere Idee liefert.

@Hauge
Copy link
Author

Hauge commented May 15, 2013

Danke für die Info, leider funktionieren zwar die Keywords in obiger Weise - jedoch nicht description & title...

@andreasisaak
Copy link
Contributor

Das machst du was falsch. Wie du in der Demo sehen kannst, funktioniert es auch mit Title und Description:

https://github.com/MetaModels/websites/blob/master/a-movie-database/templates/metamodel_full.html5#L8

Der Aufruf ist nur ein anderer.

@Hauge
Copy link
Author

Hauge commented May 15, 2013

Danke, so klappt's

@andreasisaak
Copy link
Contributor

Das ist mittlerweile integriert und kann easy via Backend eingestellt werden!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is about an enhancement (aka new feature) frontend This seems to be a bug in the frontend notyetbepatient This ticket has been postponed into the future question We have a question, please elaborate on the ticket.
Projects
None yet
Development

No branches or pull requests

3 participants