Giter Site home page Giter Site logo

resave_entries's Introduction

Resave entries

A simple Symphony CMS extension that let you resave your entries after structural section changes.

Installation

Enable the extension as always.

Usage

Go to System -> Preferences and choose the entries of which section you want to resave. As simple as that :)

resave_entries's People

Contributors

s-e avatar alpacaaa avatar michael-e avatar

Stargazers

Patrick Yan avatar Roman Klein avatar Andrew Minton avatar Vlad Ghita avatar  avatar Pablo avatar  avatar

Watchers

Brian Zerangue avatar  avatar James Cloos avatar Roman Klein avatar  avatar

resave_entries's Issues

Resave Entries deletes out existing Reflection Field values generated by Subsection Manager on Save.

Resave Entries deleting out values Reflection Field values (that are generated from Subsection Manager using the Reflection field's XSLT utility).

When I run Resave Entries, instead of saving the Reflection Field Values, it skips over those values. Or if there is existing Reflection Field values, it empties or removes those values on Save.

To test it wasn't a Reflection field issue, I manually saved a specific entry, and it saves the value as it should.

Do you know what could be causing this?

I have used Resave Entries with a Reflection field in the past with no issue.

I am running Resave Entries, version 0.2, and running Subsection Manager 3.5.1, and Symphony 2.3.3.

Here's my reflection field utility...

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:template match="data">
      <data>
        <xsl:apply-templates select="entry" mode="search-audio-speaker-reflection"/>
    </data>
   </xsl:template>

   <xsl:template match="entry" mode="search-audio-speaker-reflection">

      <xsl:element name="search-audio-speaker">

        <!-- THIS VALUE IS COMING FROM A SUBSECTION MANAGER FIELD-->

        <xsl:value-of select="concat(speaker/item/first-name/text(),' ',speaker/item/last-name/text())"/>

      </xsl:element>

   </xsl:template>

</xsl:stylesheet>

Process breaks silently if numer of entries per page is too high

I tried to update a large section, including around 1800 entries. Setting the number of entries per page to 50, it broke on the first page. Setting the number to a lower value, it processed some pages, then stopped.

(In the end I managed to update the section using 1 entry per page.)

Is this phenomenon related to memory issues, maybe?

Anyway there should be a warning if the process has not been completed.

Symphony 2.3 Resave doesn't work

I have section with 20 entries. When I select it and hit the re-save button, Saving 1 of NaN appears and nothing happens. I'm using 0.2, of course.

Ajax request does not exit gracefully on Symphony Error

resave_entries.publish.js

$.ajax still considers Symphony Errors a successful response, so there's no trap for them in the Ajax success callback. Non-destructive but does abort the resave completely with no feedback and leaves the button disabled and logger at "Processing".

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.