Giter VIP home page Giter VIP logo

customfieldcaptions's People

Contributors

brendo avatar nilshoerrmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

customfieldcaptions's Issues

Ability to show caption as placeholder

Taken from symphonycms/symphony-2/947, but the idea that captions could be inline, as @placeholder attributes instead of replacing the "Optional" text (or at least living in the same space)

'data' [undefined]

I'm not sure if I'm missing something, but installing this extension on Symphony 2.2.1 doesn't change anything in the interface but creates this error in the console when browsing the section editor:

TypeError: Result of expression 'data' [undefined] is not an object. customfieldcaptions.sections.js:37

Can fail with Publish Tabs

I'm picking on you today...

in the publish JS, the if statement for undefined needs updating to be:

if(isNaN(parseInt(field_id)) || data[field_id].caption == undefined) return;

In some cases, the Publish Tabs extension loads after this one, and therefor your JS errors and breaks the page in 2.2.5

Empty caption fields display 'null' on publish pages

Symphony 2.3beta3 - Fields with empty captions on the sections pages display 'null' in the publish pages

Fix:

Changing assets/customfieldcaptions.publish.js line #21 from

if(data[field_id] == undefined) return;

to

if(data[field_id].caption == undefined) return;

seems to fix it

PS - Thanks for all your hard work on Symphony 2.3 - it's looks & feels great!

"Placement" selectbox is misalignment

After installing custom field caption, the Placement selecbox in the Sections is appear in the middle instead of align to the left.
Could Custom field caption placing at the bottom of the Label field instead to allow writing a long description?

S2.2.5
Windows 7
Google Chrome 17.*

Throws a javascript error in Sym 2.5

With Sym 2.5 the custom field input shows for some sections but not for others. I have not been able to narrow it down to the presence of a specific field type in the section, but the error thrown follows.

I can grant access to the offending installation if it helps.

[Error] TypeError: 'undefined' is not an object (evaluating 'data[field_id].caption')
(anonymous function) (customfieldcaptions.sections.js, line 65)
each (symphony.min.js, line 14)
each (symphony.min.js, line 14)
(anonymous function) (customfieldcaptions.sections.js, line 56)
k (symphony.min.js, line 24)
fireWith (symphony.min.js, line 24)
ready (symphony.min.js, line 24)
g (symphony.min.js, line 14)

[2.3] Caption field is not inserted when a new field is added.

Symphony 2.3 has a reworked Duplicator plugin, but it makes it hard/impossible to listen for the for an event that lets you know a new item has been added.

At the moment, clicking Add Item in 2.3 will not dynamically insert the Caption field. Refreshing the Section Editor will correctly add the field.

Awaiting advice from @nilshoerrmann about to proceed. I did manage to get it working by hacking the plugin to add:

object.trigger('constructstart.duplicator', [instance]);

at Line 105 of the Duplicator plugin, as this allows me to listen to $duplicator.on('constructstart.duplicator'), but I'm curious if there's a different way to do this.

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.