Code Monkey home page Code Monkey logo

entry_url_field's Introduction

Entry URL Field

Installation

  1. Upload the 'entry_url_field' folder in this archive to your Symphony 'extensions' folder.
  2. Enable it by selecting the "Field: Entry URL", choose Enable from the with-selected menu, then click Apply.
  3. The field will be available in the list when creating a Section.

Usage

When adding this field to a section, the following options are available to you:

  • Anchor Label is the text used for the hyperlink in the backend. An <entry id="123">...</entry> nodeset is provided from which you can grab field values, just as you would from a datasource. For example:

    Link to "{entry/name}"

  • Anchor URL is the URL of your entry view page on the frontend. An <entry id="123">...</entry> nodeset is provided from which you can grab field values, just as you would from a datasource. For example:

    /members/profile/{entry/name/@handle}/

  • Open links in a new window enforces the hyperlink to spawn a new tab/window

  • Hide this field on publish page hides the hyperlink in the entry edit form

Credits

Big thanks to Rowan Lewis' Reflection Field, which comprises about 90% of this code! Thx.

entry_url_field's People

Contributors

davidoliver avatar nickdunn avatar nimanthaharshana avatar nitriques avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

entry_url_field's Issues

Meta XML needs to be updated

This extension seems to work okay with Sym 2.6. I'm not sure exactly how the meta XML should be updated; is it okay to update the version numbers (max?) of the last release node?

Generated URL is blank

From email:

I tried using your Entry URL Field plugin and add it to our Events section but no matter what XPath I use, it always show a link to the backend edit page. See here: http://d.pr/i/QeWH. You can see in the bottom that the link URL is set to the same as the page URL.

Let me know if you have any pointers or thoughts. I was even trying to first get the XPath to just point to {root} so I could debug.

Entry URL field not set when entry updated from entries table - fatal error thrown after when loading table

Hi,

An Entry URL field is not set when an entry is updated and saved from the entries table. A fatal error is then thrown when trying to load the table until the affected entries are saved individually.

Steps to reproduce:

  1. Install the extension
  2. Add Entry URL field to a section and fill the required settings
  3. Check 'Display in entries table'
  4. Visit the section's entries table
  5. Select and highlight one entry which has 'None' in the Entry URL field's column - important make a note of the entry's ID before next step
  6. Click 'With Selected...' select box at the bottom of the list
  7. Set something (in my case I set an existing checkbox to Yes or No, doesn't matter which)
  8. The fatal error below is thrown any time you try to load the entries table unless you save the affected entry manually
  9. With the ID you noted earlier, use the browser address bar to manually navigate to entry (e.g. append edit/123/ to the URL), OR, use the browser back button from the error page which should show a cached version of the entries list, you can also click on the highlighted entry you just changed to take you to the same entry
  10. Note that the field that you changed with step 7 has been changed as expected, however the Entry URL field has not been set and is empty (assuming you picked an entry which was originally 'None', as step 5)
  11. Click Save Changes, the Entry URL field is set as per your expression.
  12. Load the entries table and it will display without an error.

This also happens if, in step 5, you select more than one entry marked 'None' in the Entry URL field's column.

If you choose to update an entry from the table which does have a link in the Entry URL field's column, a visual error is not thrown but it will not update the link if the expression was different from the expression from which it was first created. Try changing the expression, following steps 4 thru 7 and observe that the resulting URL does not match your expression. Steps 9 thru 11 will change it as expected.

Symphony Fatal Error: Argument `$value` is not of type `string`, given `NULL`.

An error occurred in /path-redacted/symphony/lib/toolkit/class.general.php around line 1706
    1701 throw new InvalidArgumentException(__('Enforced type `%1$s` for argument `$%2$s` does not match any known variable types.', array($param['type'], $name)));
    1702 }
    1703
    1704 // validate variable type
    1705 if (!call_user_func($validator, $param['var'])) {
    1706 throw new InvalidArgumentException(__('Argument `$%1$s` is not of type `%2$s`, given `%3$s`.', array($name, $param['type'], gettype($param['var']))));
    1707 }
    1708 }
    1709 }
    1710 

Backtrace

    [/path-redacted/symphony/lib/toolkit/class.widget.php:238]
        General::ensureType();
    [/path-redacted/extensions/entry_url_field/fields/field.entry_url.php:158]
        Widget::Anchor();
    [/path-redacted/symphony/content/content.publish.php:614]
        FieldEntry_URL->prepareTableValue();
    [/path-redacted/symphony/content/content.publish.php:356]
        contentPublish->__viewIndex();
    [/path-redacted/symphony/content/content.publish.php:361]
        contentPublish->__switchboard();
    [/path-redacted/symphony/lib/toolkit/class.administrationpage.php:496]
        contentPublish->view();
    [/path-redacted/symphony/content/content.publish.php:327]
        AdministrationPage->build();
    [/path-redacted/symphony/lib/core/class.administration.php:205]
        contentPublish->build();
    [/path-redacted/symphony/lib/core/class.administration.php:483]
        Administration->__buildPage();
    [/path-redacted/symphony/lib/boot/func.utilities.php:253]
        Administration->display();
    [/path-redacted/symphony/lib/boot/func.utilities.php:235]
        symphony_launcher();
    [/path-redacted/index.php:19]
        symphony();

Database Query Log

    [0.0001] SET character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8';
    [0.0000] SET CHARACTER SET 'utf8';
    [0.0001] SET time_zone = '+01:00';
    [0.0004] SELECT SQL_CACHE t1.name, t2.page, t2.delegate, t2.callback FROM `sym_extensions` as t1 INNER JOIN `sym_extensions_delegates` as t2 ON t1.id = t2.extension_id WHERE t1.status = 'enabled' ORDER BY t2.delegate, t1.name;
    [0.0002] SELECT SQL_CACHE `session_data` FROM `sym_sessions` WHERE `session` = 'session-token-redacted' LIMIT 1;
    [0.0002] SELECT SQL_CACHE a.* FROM `sym_authors` AS `a` WHERE `username` = 'username-redacted' ORDER BY a.id ASC LIMIT 1;
    [0.0001] UPDATE sym_authors SET `last_seen` = '2019-07-25 11:02:21' WHERE `id` = 1;
    [0.0001] SELECT SQL_CACHE `name` FROM `sym_extensions` WHERE `status` = 'enabled';
    [0.0001] SELECT SQL_CACHE * FROM `sym_extensions`;
    [0.0001] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'posts' LIMIT 1;
    [0.0002] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`child_section_id` = 11 AND `s`.`id` = `sa`.`parent_section_id` ORDER BY `s`.`sortorder` ASC;
    [0.0003] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`parent_section_id` = 11 AND `s`.`id` = `sa`.`child_section_id` ORDER BY `s`.`sortorder` ASC;
    [0.0002] SELECT SQL_CACHE `s`.* FROM `sym_sections` AS `s` ORDER BY `s`.`sortorder` asc;
    [0.0001] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'posts' LIMIT 1;
    [0.0001] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'posts' LIMIT 1;
    [0.0001] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'posts' LIMIT 1;
    [0.0003] SELECT SQL_CACHE COUNT(`e`.id) as `count` FROM `sym_entries` AS `e` WHERE `e`.`section_id` = 11;
    [0.0003] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`parent_section` = '11' ORDER BY t1.`sortorder` ASC;
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (51);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_entry_url` WHERE `field_id` IN (113);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_date` WHERE `field_id` IN (52);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_textarea` WHERE `field_id` IN (53,54);
    [0.0001] SELECT SQL_CACHE * FROM `sym_fields_selectbox_link` WHERE `field_id` IN (59);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_checkbox` WHERE `field_id` IN (74,55);
    [0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 59;
    [0.0003] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`parent_section` = '11' AND t1.show_column = 'yes' ORDER BY t1.`sortorder` ASC;
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (51);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_entry_url` WHERE `field_id` IN (113);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_date` WHERE `field_id` IN (52);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_textarea` WHERE `field_id` IN (53);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_selectbox_link` WHERE `field_id` IN (59);
    [0.0002] SELECT SQL_CACHE * FROM `sym_fields_checkbox` WHERE `field_id` IN (74,55);
    [0.0005] SELECT SQL_CACHE DISTINCT `e`.`id`, `e`.section_id, `e`.`author_id`, `e`.`modification_author_id`, `e`.`creation_date` AS `creation_date`, `e`.`modification_date` AS `modification_date` FROM `sym_entries` AS `e` WHERE 1 AND `e`.`section_id` = 11 ORDER BY ( SELECT `ed`.date FROM sym_entries_data_52 AS `ed` WHERE entry_id = e.id ) DESC, `e`.`id` DESC LIMIT 0, 20;
    [0.0009] SELECT SQL_CACHE `id` FROM `sym_fields` WHERE 1 AND `parent_section` = 11 AND `element_name` IN ('title', 'post-link', 'date', 'content', 'categories', 'feature', 'publish') ORDER BY `sortorder` ASC;
    [0.0003] SELECT SQL_CACHE * FROM `sym_entries_data_51` WHERE `entry_id` IN (846,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975) ORDER BY `id` ASC;
    [0.0002] SELECT SQL_CACHE * FROM `sym_entries_data_113` WHERE `entry_id` IN (846,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975) ORDER BY `id` ASC;
    [0.0002] SELECT SQL_CACHE * FROM `sym_entries_data_52` WHERE `entry_id` IN (846,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975) ORDER BY `id` ASC;
    [0.0011] SELECT SQL_CACHE * FROM `sym_entries_data_53` WHERE `entry_id` IN (846,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975) ORDER BY `id` ASC;
    [0.0002] SELECT SQL_CACHE * FROM `sym_entries_data_59` WHERE `entry_id` IN (846,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975) ORDER BY `id` ASC;
    [0.0002] SELECT SQL_CACHE * FROM `sym_entries_data_74` WHERE `entry_id` IN (846,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975) ORDER BY `id` ASC;
    [0.0002] SELECT SQL_CACHE * FROM `sym_entries_data_55` WHERE `entry_id` IN (846,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975) ORDER BY `id` ASC;
    [0.0002] SELECT SQL_CACHE COUNT(DISTINCT `e`.id) as `count` FROM `sym_entries` AS `e` WHERE `e`.`section_id` = 11;
    [0.0006] SHOW COLUMNS FROM `sym_entries_data_56` WHERE `Field` in ('value');;
    [0.0003] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`parent_section_id` = 11 AND `s`.`id` = `sa`.`child_section_id` AND `sa`.`hide_association` = 'no' ORDER BY `s`.`sortorder` ASC;
    [0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND id IN (56) ORDER BY t1.`sortorder` ASC;
    [0.0001] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (56);
    [0.0001] SELECT SQL_CACHE e.id, e.section_id, s.name, s.handle FROM `sym_entries` AS `e` LEFT JOIN `sym_sections` AS `s` ON (s.id = e.section_id) WHERE e.id IN (849);
    [0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`parent_section` = '12' AND t1.show_column = 'yes' ORDER BY t1.`sortorder` ASC;
    [0.0001] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (56);
    [0.0001] SELECT SQL_CACHE * FROM `sym_fields_textarea` WHERE `field_id` IN (57);
    [0.0002] SELECT SQL_CACHE `e`.`id`, `e`.section_id, `e`.`author_id`, `e`.`modification_author_id`, `e`.`creation_date` AS `creation_date`, `e`.`modification_date` AS `modification_date` FROM `sym_entries` AS `e` WHERE 1 AND `e`.`id` IN ('849') AND `e`.`section_id` = 12 ORDER BY ( SELECT `ed`.value FROM sym_entries_data_56 AS `ed` WHERE entry_id = e.id ) ASC, `e`.`id` ASC;
    [0.0002] SELECT SQL_CACHE `id` FROM `sym_fields` WHERE 1 AND `parent_section` = 12 AND `element_name` IN ('name') ORDER BY `sortorder` ASC;
    [0.0001] SELECT SQL_CACHE * FROM `sym_entries_data_56` WHERE `entry_id` IN (849) ORDER BY `id` ASC;
    [0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(67);
    [0.0001] SELECT SQL_CACHE * FROM `sym_fields_selectbox_link` WHERE `field_id` IN (67);
    [0.0001] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 67;
    [0.0003] SELECT SQL_CACHE COUNT(*) as `count` FROM `sym_entries_data_67` WHERE `relation_id` = 846;
    [0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(73);
    [0.0001] SELECT SQL_CACHE * FROM `sym_fields_selectbox_link` WHERE `field_id` IN (73);
    [0.0001] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 73;
    [0.0003] SELECT SQL_CACHE COUNT(*) as `count` FROM `sym_entries_data_73` WHERE `relation_id` = 846;
    [0.0002] SELECT SQL_CACHE e.id, e.section_id, s.name, s.handle FROM `sym_entries` AS `e` LEFT JOIN `sym_sections` AS `s` ON (s.id = e.section_id) WHERE e.id IN (847);
    [0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`parent_section` = '12' AND t1.show_column = 'yes' ORDER BY t1.`sortorder` ASC;
    [0.0001] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (56);
    [0.0001] SELECT SQL_CACHE * FROM `sym_fields_textarea` WHERE `field_id` IN (57);
    [0.0002] SELECT SQL_CACHE `e`.`id`, `e`.section_id, `e`.`author_id`, `e`.`modification_author_id`, `e`.`creation_date` AS `creation_date`, `e`.`modification_date` AS `modification_date` FROM `sym_entries` AS `e` WHERE 1 AND `e`.`id` IN ('847') AND `e`.`section_id` = 12 ORDER BY ( SELECT `ed`.value FROM sym_entries_data_56 AS `ed` WHERE entry_id = e.id ) ASC, `e`.`id` ASC;
    [0.0002] SELECT SQL_CACHE `id` FROM `sym_fields` WHERE 1 AND `parent_section` = 12 AND `element_name` IN ('name') ORDER BY `sortorder` ASC;
    [0.0001] SELECT SQL_CACHE * FROM `sym_entries_data_56` WHERE `entry_id` IN (847) ORDER BY `id` ASC;
    [0.0001] SELECT SQL_CACHE COUNT(*) as `count` FROM `sym_entries_data_67` WHERE `relation_id` = 957;
    [0.0001] SELECT SQL_CACHE COUNT(*) as `count` FROM `sym_entries_data_73` WHERE `relation_id` = 957;
    [0.0001] SELECT SQL_CACHE COUNT(*) as `count` FROM `sym_entries_data_67` WHERE `relation_id` = 958;
    [0.0001] SELECT SQL_CACHE COUNT(*) as `count` FROM `sym_entries_data_73` WHERE `relation_id` = 958; 

CentOS Linux 7.6.1810
Symphony 2.7.10
PHP 7.1.30
Time to test and create issue 2 hours

Unknown column 'label' in 'field list'

I have been trying to figure out how to use this extension so this may very well be user error, but I've put an Entry URL field in one of my sections and put {entry/page_title}' in the Anchor URL field andLink to {entry/page_title}` in the Anchor Label field. In my section it looks like this:
image

The source of the area is:

    <label>URL Handle
        <span class="frame">
            <a href="#" target="_blank"></a>
        </span>
    </label>

I read that the field wouldn't update until I resaved the entry, so I went to save it and I got: http://pastebin.com/yUhp63FA

Symphony Fatal Database Error: Unknown column 'label' in 'field list'

An error occurred while attempting to execute the following query

INSERT INTO `sym_entries_data_90` (`entry_id`, `label`, `value`) VALUES ('19', NULL, NULL)
Backtrace
[/var/www/vhosts/pb.test/httpdocs/symphony/lib/toolkit/class.mysql.php:475]
    MySQL->__error();
[/var/www/vhosts/pb.test/httpdocs/symphony/lib/toolkit/class.mysql.php:605]
    MySQL->query();
[/var/www/vhosts/pb.test/httpdocs/symphony/lib/toolkit/class.entrymanager.php:186]
    MySQL->insert();
[/var/www/vhosts/pb.test/httpdocs/symphony/lib/toolkit/class.entry.php:268]
    EntryManager::edit();
[/var/www/vhosts/pb.test/httpdocs/symphony/content/content.publish.php:1101]
    Entry->commit();
[/var/www/vhosts/pb.test/httpdocs/symphony/content/content.publish.php:81]
    contentPublish->__actionEdit();
[/var/www/vhosts/pb.test/httpdocs/symphony/content/content.publish.php:67]
    contentPublish->__switchboard();
[/var/www/vhosts/pb.test/httpdocs/symphony/lib/toolkit/class.administrationpage.php:415]
    contentPublish->action();
[/var/www/vhosts/pb.test/httpdocs/symphony/lib/core/class.administration.php:256]
    AdministrationPage->build();
[/var/www/vhosts/pb.test/httpdocs/symphony/lib/core/class.administration.php:454]
    Administration->__buildPage();
[/var/www/vhosts/pb.test/httpdocs/index.php:22]
    Administration->display();
Database Query Log
[0.0004] SET character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8';
[0.0001] SET CHARACTER SET 'utf8';
[0.0001] SET time_zone = '-07:00';
[0.0003] SELECT SQL_CACHE t1.name, t2.page, t2.delegate, t2.callback FROM `sym_extensions` as t1 INNER JOIN `sym_extensions_delegates` as t2 ON t1.id = t2.extension_id WHERE t1.status = 'enabled' ORDER BY t2.delegate, t1.name;
[0.0003] SELECT SQL_CACHE `session_data` FROM `sym_sessions` WHERE `session` = 'ar31dooo7lkkn4gka8v8v1tr44' LIMIT 1;
[0.0010] SELECT SQL_CACHE a.* FROM `sym_authors` AS `a` WHERE `username` = 'pbadmin' ORDER BY a.id ASC LIMIT 1;
[0.0002] UPDATE sym_authors SET `last_seen` = '2013-09-09 13:03:22' WHERE `id` = 1;
[0.0002] SELECT SQL_CACHE `name` FROM `sym_extensions` WHERE `status` = 'enabled';
[0.0002] SELECT SQL_CACHE * FROM `sym_extensions`;
[0.0003] SELECT SQL_CACHE `s`.* FROM `sym_sections` AS `s` ORDER BY `s`.`sortorder` asc;
[0.0002] SELECT SQL_CACHE d.pages, d.id FROM `sym_documentation` AS d ORDER BY d.pages ASC;
[0.0001] SELECT SQL_CACHE `section_id` FROM `sym_entries` WHERE `id` = '19' LIMIT 1;
[0.0001] SELECT SQL_CACHE `e`.id, `e`.section_id, e.`author_id`, UNIX_TIMESTAMP(e.`creation_date`) AS `creation_date`, UNIX_TIMESTAMP(e.`modification_date`) AS `modification_date` FROM `sym_entries` AS `e` WHERE 1 AND `e`.`id` IN ('19') AND `e`.`section_id` = '12';
[0.0001] SELECT SQL_CACHE `id` FROM `sym_fields` WHERE `parent_section` = 12 ORDER BY `sortorder` ASC;
[0.0001] SELECT SQL_CACHE * FROM `sym_entries_data_40` WHERE `entry_id` IN (19) ORDER BY `id` ASC;
[0.0001] SELECT SQL_CACHE * FROM `sym_entries_data_41` WHERE `entry_id` IN (19) ORDER BY `id` ASC;
[0.0001] SELECT SQL_CACHE * FROM `sym_entries_data_46` WHERE `entry_id` IN (19) ORDER BY `id` ASC;
[0.0001] SELECT SQL_CACHE * FROM `sym_entries_data_71` WHERE `entry_id` IN (19) ORDER BY `id` ASC;
[0.0001] SELECT SQL_CACHE * FROM `sym_entries_data_90` WHERE `entry_id` IN (19) ORDER BY `id` ASC;
[0.0001] SELECT SQL_CACHE `id`, `element_name`, `type`, `location` FROM `sym_fields` WHERE `parent_section` = 12 ORDER BY `sortorder` ASC;
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(40);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (40);
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(41);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_selectbox_link` WHERE `field_id` IN (41);
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(46);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_textarea` WHERE `field_id` IN (46);
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(71);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_author` WHERE `field_id` IN (71);
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(90);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_entry_url` WHERE `field_id` IN (90);
[0.0001] SELECT SQL_CACHE `id`, `element_name`, `type`, `location` FROM `sym_fields` WHERE `parent_section` = 12 ORDER BY `sortorder` ASC;
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`parent_section` = '12' ORDER BY t1.`sortorder` ASC;
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (40);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_selectbox_link` WHERE `field_id` IN (41);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_textarea` WHERE `field_id` IN (46);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_author` WHERE `field_id` IN (71);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_entry_url` WHERE `field_id` IN (90);
[0.0005] UPDATE sym_entries SET `modification_date` = '2013-09-09 13:03:22', `modification_date_gmt` = '2013-09-09 20:03:22' WHERE `id` = 19;
[0.0002] DELETE FROM sym_entries_data_40 WHERE `entry_id` = 19;
[0.0002] INSERT INTO `sym_entries_data_40` (`entry_id`, `value`, `handle`) VALUES ('19', 'My Misc', 'my-misc');
[0.0002] DELETE FROM sym_entries_data_41 WHERE `entry_id` = 19;
[0.0001] INSERT INTO `sym_entries_data_41` (`entry_id`, `relation_id`) VALUES ('19', '16');
[0.0002] DELETE FROM sym_entries_data_46 WHERE `entry_id` = 19;
[0.0001] INSERT INTO `sym_entries_data_46` (`entry_id`, `value`, `value_formatted`) VALUES ('19', NULL, '\n');
[0.0002] DELETE FROM sym_entries_data_71 WHERE `entry_id` = 19;
[0.0001] INSERT INTO `sym_entries_data_71` (`entry_id`, `author_id`) VALUES ('19', '2');
[0.0001] DELETE FROM sym_entries_data_90 WHERE `entry_id` = 19;

Anybody know what's going on here? I'm using 2.3.3

(some) XPath functions cannot be used

Extension version: 1.3.3
Symphony: 2.7.10
PHP: 7.3.12
OS: Linux

I cannot use a simple translate() function in a section's Anchor URL (XPath expression) field. To ensure my expression was correct I copied it to a new Reflection Field (2.0.4), saved and it translated as expected.

If 90% of this extension's code is from Reflection Field, as the README states, then this is probably related to issues surrounding symphonists/reflectionfield#35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.