精华内容
下载资源
问答
  • <div><p>this PR adds the site title after the page title in the browser's title bar.</p><p>该提问来源于开源项目:Vimux/Mainroad</p></div>
  • Page Title Structure

    2021-01-04 07:31:43
    <p>Sowohl die Reihenfolge (<code>pageTitle - mainTitle</code> oder <code>mainTitle - pageTitle) als auch der Separator (<code>-) sollten frei wählbar sein. Hier zwei Umfragen zum Thema: ...
  • <div><h2>Summary <p>This PR can be ...page title" to "snippet title" in the snippet title feedback string. <p>Fixes #120</p><p>该提问来源于开源项目:Yoast/YoastSEO.js</p></div>
  • <div><p>Currently, Page Title does not inherit the title from it's parent. For example, a child of <code>MyAwesomePage</code> will have the Title <code>MyAwesomeChildPage > SiteTitle Having a ...
  • Laravel开发-pagetitle

    2019-08-28 17:54:36
    Laravel开发-pagetitle 在Laravel视图中管理页面标题
  • <div><p>If a wiki page title has been changed, the search page returns the initial title and not the newest title. <p>I have to assume this will be a simple fix in the code from reading <code>node....
  • Set page title?

    2020-12-05 23:09:50
    s the best/recommended way to set a page title for every route? So that the browser tab shows "My app name - {Page title}".</p><p>该提问来源于开源项目:EmilTholin/svelte-routing</p></div...
  • <div><p>| Q | A | | --- | --- | | Zikula Version | 1.4.3 | ...<h3>Expected behavior ... %pagetitle%, and startmodule still set to staticpage.</p><p>该提问来源于开源项目:zikula/core</p></div>
  • DedeCMS Pagetitle 标记使用实例教程 【Pagetitle 标记】 功能说明:表示获取文档的分页标题 适用范围:仅文档模板
  • It goes from the <strong>Page Title - Site Name</strong> to a lower case <strong>domainname.tld</strong> and then back again with every refresh.</p><p>该提问来源于开源项目:Yoast/wordpress-seo...
  • <div><p>When creating a page, a Title is mandatory. Not all pages need the page title displayed. A on/off slider to display Title would be a nice feature.</p><p>该提问来源于开源项目:PiranhaCMS/...
  • <div><p>Currently the title of a page is below the location of the title of a post. <p>This commit moves the page title down to the same location as the post title.</p><p>该提问来源于开源项目:...
  • <div><p>If the page TITLE could be changed, then you could find which is which between many open tabs of pads. <p>Let the user easily re-title the page. We have so many windows/pages open, it's ...
  • Provide a cross link to <code>/external-resources</code> to mention how to set the page title via the server side template, which would provide the page title on <em>page load</em> rather than ...
  • Expected: The page title separator can be shown on the page title Result: The page title separator is not in the page title</p><p>该提问来源于开源项目:OrchardCMS/Orchard</p></div>
  • <div><h2>Support for Brand Slug in Page Title <p><strong>Is your feature request related to a problem? Please describe. The title element in a lot of sites often has a common slug appended at the end....
  • Hyphen in page title at wiki

    2021-01-12 08:59:09
    <div><p>Instructions at <a href="https://help.github.com/articles/adding-and-editing-wiki-pages-locally#creating-your-wiki-page-title">Adding and editing wiki pages locally#Creating your wiki page ...
  • <div><p>Is there a way to call the page title and sub menu different titles? <p>For instance I want to call the page title "custom theme settings", but want to name the sub menu I have created...
  • When viewing the pages in the live Google Analytics traffic view, the page path is correct upon changing pages however the page title is of the previous page. It doesn't seem to update with the ...
  • My Page Title")).shouldBe(present); // NOK </code></pre> <p>However, there are situations where the page content is not relevant and it is sufficient to test the HTML page title. <p>Please, add ...
  • <div><p>This adds the title to the title element of the page. This means that on a tutorial page, the title would read <code>Tutorial: Foo - tui-jsdoc-template</code> instead of just reading <code>tui...
  • Fix page title hysteresis

    2020-12-26 02:49:27
    <div><p>On choosing a page link, properly update title when it should be an empty string. Without this, e.g. in ReferenceInputView, <code>title</code> will not update in certain situations, because ...
  • PageTitle" which can now be placed between the title tag in a layout like so </li><li>I have added a new site setting called "PageTitleFormat" and have added a new field to the general ...
  • <div><p>PAGE_NAME and e_PAGETITLE are global constants/variables. Before I was able to use them in theme.php, now it's not possible. <p>I tried both this way: ...
  • (There is footer)</li><li>Check page title of new page</li></ol> <p>Observed: Title is "" Expected: Title is "Home" or something like</p><p>该提问来源于开源项目:alterm4nn/...
  • Yii Framework 设置 获取pageTitle

    千次阅读 2013-01-28 10:30:41
    如何在Yii Framework 1.1.x及以上设置页面的pageTitle 1.在显示页面中总会有如下的代码标签来显示你的页面标题(title) pageTitle);?> 注:条件语句也可以用来动态设置页面标题 2. 可以在Cotroller层 和VIEW 层...

    如何在Yii Framework 1.1.x及以上设置页面的pageTitle

    1.在显示页面中总会有如下的代码标签来显示你的页面标题(title)

    <title><?php echo CHtml::encode($this->pageTitle);?></title>

    注:条件语句也可以用来动态设置页面标题
    2. 可以在Cotroller层 和VIEW 层设置pageTitle

    $this->pageTitle ="My page title";


     

    展开全文
  • <div><p>In Contao 4.4 and Contao 4.5 the page-title is always the Title of the Page. Not the Title of the News ore the Event. In Contao 3.5.x it works like expected. I have an Reader-Module in an ...
  • <p>Admins with many sites running separate puppetservers with separate puppetbords may find it useful to be able to chagen the page title from Puppetboard to something more site specific.</p><p>该提问...
  • vue change page title

    2018-06-12 09:54:00
    只需要在路由index.js配置meta的title就可以,然后在main.js实现页面改变title export default new Router({ routes: [ { path: '/', name: 'index', component: index, meta: { title:'index' } }, ...

    只需要在路由index.js配置meta的title就可以,然后在main.js实现页面改变title

    
    export default new Router({
      routes: [
        {
          path: '/',
          name: 'index',
          component: index,
          meta: { title:'index' }
        },
        {
          path: '/news',
          name: 'news',
          component: news,
          meta: {title:'news' }
        },
    
    
    
    
    
    
    router.beforeEach((to, from, next) => {
      /* 路由发生变化修改页面title */
      if (to.meta.title) {
        document.title = to.meta.title
      }
      next()
    })

    如果想为了seo的话,可以添加name,和content

    import Vue from 'vue';
    import VueRouter from 'vue-router';
    import App from './App.vue';
    import Nested from './Nested.vue';
    
    Vue.use(VueRouter);
    
    const routes = [
      {
        path: '/',
        component: App,
        meta: {
          title: 'Home Page - Example App',
          metaTags: [
            {
              name: 'description',
              content: 'The home page of our example app.'
            },
            {
              property: 'og:description',
              content: 'The home page of our example app.'
            }
          ]
        }
      },
      {
        path: '/about',
        // I'm kind of cheating by reusing the main app component here.
        component: App,
        meta: {
          title: 'About Page - Example App',
          metaTags: [
            {
              name: 'description',
              content: 'The about page of our example app.'
            },
            {
              property: 'og:description',
              content: 'The about page of our example app.'
            }
          ]
        },
    
        children: [
          {
            path: 'nested',
            component: Nested,
            meta: {
              title: 'Nested - About Page - Example App'
            }
          }
        ]
      }
    ];
    
    
    const router = new VueRouter({
      routes,
      mode: 'history'
    });
    
    new Vue({
      router,
      template: ''
    })
    .$mount('#app');

    main.js

    // This callback runs before every route change, including on page load.
    router.beforeEach((to, from, next) => {
      // This goes through the matched routes from last to first, finding the closest route with a title.
      // eg. if we have /some/deep/nested/route and /some, /deep, and /nested have titles, nested's will be chosen.
      const nearestWithTitle = to.matched.slice().reverse().find(r => r.meta && r.meta.title);
    
      // Find the nearest route element with meta tags.
      const nearestWithMeta = to.matched.slice().reverse().find(r => r.meta && r.meta.metaTags);
      const previousNearestWithMeta = from.matched.slice().reverse().find(r => r.meta && r.meta.metaTags);
    
      // If a route with a title was found, set the document (page) title to that value.
      if(nearestWithTitle) document.title = nearestWithTitle.meta.title;
    
      // Remove any stale meta tags from the document using the key attribute we set below.
      Array.from(document.querySelectorAll('[data-vue-router-controlled]')).map(el => el.parentNode.removeChild(el));
    
      // Skip rendering meta tags if there are none.
      if(!nearestWithMeta) return next();
    
      // Turn the meta tag definitions into actual elements in the head.
      nearestWithMeta.meta.metaTags.map(tagDef => {
        const tag = document.createElement('meta');
    
        Object.keys(tagDef).forEach(key => {
          tag.setAttribute(key, tagDef[key]);
        });
    
        // We use this to track which meta tags we create, so we don't interfere with other ones.
        tag.setAttribute('data-vue-router-controlled', '');
    
        return tag;
      })
      // Add the meta tags to the document head.
      .forEach(tag => document.head.appendChild(tag));
    
      next();
    });

    转载于:https://www.cnblogs.com/cyany/p/9171673.html

    展开全文
  • 1 page title </head> contains informationaboutthe page </title> the title of the document 转载于:https://www.cnblogs.com/yzhen/p/3657258.html
    1 page title
    </head>
        contains information about the page
    </title>
    the title of the document

    转载于:https://www.cnblogs.com/yzhen/p/3657258.html

    展开全文

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 43,469
精华内容 17,387
关键字:

pagetitle