Pages

Monday, February 20, 2012

Auto File Name

Download

Compatibility
  • 7.x
  • 9.x
  • 10.x
  • 11.x

Description
  1. Automatically assign SEO friendly page file name using page headline

Accessibility
  • Please see readme.txt within plugin zip for easy installation instructions.

3 comments:

  1. Hi Jian

    I can't get this to work, although the source code in SmartEdit suggests the function receives the value as intended:
    InitRqlParams("27B874B8C5B64DB78A55CC2D87E21FA0", "27B874B8C5B64DB78A55CC2D87E21FA0");
    AssignHeadlineAsFileName("9A4ACF04BAFD4A238DA789D4F0CB2F7A");

    Any idea why the filename would not be set? I've got jQuery included already so just using AutoFileName.js

    Cheers

    Neil

    ReplyDelete
  2. Hi Jian,

    Great Plugin! Thanks it is very useful.

    But I can only get the plugin to work, when I publish the page through SmartEdit.

    How can I also get it working, when you publish the page through SmartTree?

    Can it do both?

    ReplyDelete
    Replies
    1. Currently, the surrounding smartedit only blockmark is telling the JavaScript code to run when viewed in SmartEdit. If removed, it will run when viewed in Page Preview also. Please note that on publish the code does not run because no one is viewing the page, and the code will get published along with the page, so that is not good to have the smartedit only blockmark removed. Maybe you can change it so when it is not publishing, run code when viewed.

      Delete