开发者

User controlled html title tags

开发者 https://www.devze.com 2022-12-27 04:21 出处:网络
What are the best practices for allowing a user to maintain the html title tags of all the major page开发者_运维问答s of his/her site?

What are the best practices for allowing a user to maintain the html title tags of all the major page开发者_运维问答s of his/her site?

One way could be to allow the mapping of URLs to some text.

For example, we have an app with the following (most complex) url format:

http://lang.example.com/searchpage.zaf?a=foo&b=bar&c=RANDOM

There are several parts to this:

  • Language sub domain
  • Search page
  • Static parameter 'a' (user may want this in the title)
  • Dynamic and relevant parameter 'b' (user may want this in the title)
  • Dynamic parameter 'c' which can be ignored

Never done this before, so I'm asking how you would tackle this!


I handled the one to one mappings via a look up table which is managed by the user and the other features with code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号