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

SEO helpers #405

Open
tablatronix opened this issue Nov 27, 2012 · 6 comments
Open

SEO helpers #405

tablatronix opened this issue Nov 27, 2012 · 6 comments

Comments

@tablatronix
Copy link
Member

Add SEO helpers to meta data.

I want to add a meta tab to pages that allows additional meta tags for SEO.
Custom title etc.
Robots.
etc.

Please add additional requests.
For example we can add facebook OG here.
And whatever google uses for its "special" preview excerpts, I forget how that works.

@n00dles
Copy link
Contributor

n00dles commented Nov 27, 2012

yes like it.

would like to move the whole page interface to tabs, never liked the jquery dropdown for the page options.
this would also allow plugin writers add tabs for custom fields etc.. without cluttering up the main page.

@cnb
Copy link
Contributor

cnb commented Nov 28, 2012

These are the specifications I suggested for a custom title tag plugin (Later a user -ePirat- implemented those in the Custom Title plugin).

Set your favourite value for:
Sitewide page title tag (default: "%pagetitle% - %sitename%")
(in Setup, or in the Pages sidebar)

You can also define custom title tags for a specific page (overriding the site default) in the
editor options -> Custom title tag (empty for default)

You can use the following variables:
%sitename% Name of the website (as defined in GetSimple setup)
%pagetitle% Title of the current page (as defined in the editor - the one display in the page body)
%parenttitle% Title of the parent's page
%menutitle% Title of the current page's menu item (if it has one)

http://get-simple.info/forums/showthread.php?tid=1645
http://get-simple.info/forums/showthread.php?tid=2297

...

Now some more ideas for implementing it in GS:

  • Instead of %token% (like custom permalinks) it could be something more readable like {token}, [token], ... (and maybe page-title instead of pagetitle)
  • There would be a new template tag, e.g. get_page_meta_title()
  • get_page_clean_title() could simply be turned into an alias of the new function. This way, most old themes would be more-or-less compatible with this new feature (small glitch: the site name would be dupe on those, but not diffcult to spot and fix for users). From now on, if you agree, we would consider titles are text, not html (related: Issue Site name encoding in backend and frontend #357 and cleanoutput function cl() issues #387 )

@cnb
Copy link
Contributor

cnb commented Nov 28, 2012

(I had posted this before in the forum)

I also suggest:
New hooks or filters that allow processing/replacing (like the content filter) the output of at least these functions:

  • get_page_clean_title (and/or the new get_page_meta_title or whatever)
  • get_page_title
  • get_navigation
  • ... (meta desc, etc...?)

This way, plugins could modify/replace their output without requiring the user to change tags in the template.

@tablatronix
Copy link
Member Author

ah so you want both sitewide custom titles and per page, lol, makes sense.
Do you think we need to add per page in core, or just allow a hook or something.

@cnb
Copy link
Contributor

cnb commented Feb 12, 2013

Not sure if it would be better to only add hooks/filters and let plugins do it, instead of in the core.
Maybe a simple (removable) custom title plugin could be bundled with GS.
Anyway I think those hooks/filters are necessary for use by plugins (blog/news/items/...)

@tablatronix
Copy link
Member Author

refs #506

This was referenced Jul 9, 2013
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