0 users online. Create an account or sign in to join them.Users

Author:
nickdunn
Version:
1.1
Released:
7 February 2011
Category:
Field Types

New#1: Doesn't respect Symphony installed in a subdirectory

In my case, the link in the backend goes to http://localhost/blog/post instead of http://localhost/sitename/blog/post.

This can be fixed by concatenating the URL constant to the anchor href value.

$anchor = Widget::Anchor(
    $this->get('anchor_label'),
    URL . $data['value']
);

If this change is made at line 115 and line 168 of field.entry_url.php, the link will work for an install in a subdirectory, assuming that the path from the root URL is saved as the field value.

/path/to/page/{entry/title/@handle}/

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details