Sitecore page editor add here button not appearing for specific user - sitecore8

I am getting the below error from browser console whenever i tried to click on add component at the sitecore page editing ribbon bar, and this add here button doesn't appear on the placeholders. Also this is happening for a specific content author user alone and not for other users, Please help on the same
SCRIPT5007: Unable to get property 'parent' of undefined or null reference
Chrome.js (298,9)
: {"stack":"TypeError: Unable to get property 'parent' of undefined or null reference \n at getChildChromes (http://wpois037/sitecore/shell/Applications/Page%20Modes/Chrome.js:298:9) \n at renderings (http://wpois037/sitecore/shell/Applications/Page%20Modes/ChromeTypes/PlaceholderChromeType.js:504:5) \n at activate (http://wpois037/sitecore/shell/Applications/Page%20Modes/PlaceholderInsertion.js:21:5) \n at onShow (http://wpois037/sitecore/shell/Applications/Page%20Modes/ChromeTypes/PlaceholderChromeType.js:485:5) \n at Anonymous function (http://wpois037/sitecore/shell/Applications/Page%20Modes/DesignManager.js:11:7) \n at each (http://wpois037/sitecore/shell/Controls/Lib/jQuery/jquery-1.6.4.min.js:2:12790) \n at insertionStart (http://wpois037/sitecore/shell/Applications/Page%20Modes/DesignManager.js:10:5) \n at showRenderingTargets (http://wpois037/sitecore/shell/Applications/Page%20Modes/PageEditor.js:431:5) \n at showRenderingTargets (http://wpois037/sitecore/shell/Applications/Page%20M

It seems the issues is with having slick carousel js plugin into the site. As sitecore edit mode is causing html overlap with the slick html generation.
Got the solution in another post to use slick carousel with infinite property to false.

Related

Display template for content search webpart issue for datatable and Tabs

I have developed display template and using it in Content search web part.
For displaying result on page i am using JQuery datatable/JQuery Tabs in display template.
Everything works fine, but sometime while loading page i am getting error like ("Object doesn't support property or method 'dataTable' (OnPostRender: )" and for tabs error is "Object doesn't support property or method 'tabs' (OnPostRender: )").
And if i refresh page many times then error will go and result is display as code.
I have register JQuery, JS and CSS using $includeScript.
I have also tried with RegisterSod for JQuery and JS file but still issue is same.
Thanks in Advance.
Can be:
This error usually occurs when an html element id has the same id as some variable in the javascript function, try change the name.
If you put the code I'll be able to help you better.
test = button.attr('test'); // Object doesnt support this method
$test= button.attr('test'); // works fine
Or debbug your code with and discover your problem. Enable script debugging IE:
In Internet Explorer, choose Internet Options from the Tools menu.
In the Internet Options dialog box, click the Advanced tab.
On the Advanced tab, under Browsing, clear Disable Script Debugging.
Click OK.
If you have IE 8+ click here
Tutorial Using jQuery dataTables: link here

Sitecore 8, MVC, Experience Editor: How to make a rendering refresh after a Field Editor Button has been used

We have a rendering listing the selected items in a TreeSelect in the current item. In our case we call them "Tags" (1)
We have added a Field Editor Button to the component to let the editor change selected items. (2) (As described on for example Adding a custom component)
When an editor clicks (2) the editor window (3) it is opened in a dialog. The editor may select different items(called tags in our case) using the TreeSelect.
When the editor presses the ok-button (4) the values are set.
Now to the problem:
The values are actually set as they get stored when the editor presses the Save button but we want our list on the page (1) to immediately reflect the set items when the editor presses the ok-button (4), i.e. before having to actually save the whole item.
How do we achieve that?
(I am in contacts with Sitecore support but so far I have not gotten any answers...)
Update
After a lot of conversation with the support we still have no useful solution.
We tried turning it into a field renderer displaying the links.
What worked was:
The field do get updated when you have edited it in the popup field editor. (but...)
It looks good the first time when page is loaded.
You can make a WebEdit button with commands to edit the field and add it as Custom button to the field (register <command name="webedit:fieldeditor" type="Sitecore.Shell.Applications.WebEdit.Commands.FieldEditor, Sitecore.Client"/> and set Click on the button to webedit:fieldeditor(command={3473DDA1-2983-493C-AF7A-054C75AA7AD3},fields=NameOfField where the guid points to itelf and an "Icon" is set on it.)
What didn't work was:
The field get updated by the raw value, not what I want to display. Server code is involved, but not in the rendering of html-code.
When I want to edit the value in the field editor, the value sent to the field editor is not the raw value but what actually is displayed on the page. (I guess this can be solved somehow)
The issue to the support turned into a feature request to let the server be involved in rendering the field, not just sending a new value to the JavaScript updating it. The server does the first rendering so when it already is involved in updating, it should be allowed to do the rendering the following times too.
We have decided to not spend more time on this right now (we have other things to do too.) and have a bad editor experience as the field not get updated until the editor actually saves the item.
Still we have no suitable solution for this issue. If you want to keep working on it and want a reference to my issue it is 439059.
This may not be useful here. I've done this in normal sites, but not in Sitecore. But, here's one possibility....
This is a situation where you would pass a callback function to the child popup window. This callback will cause the caller / parent window to re-read/re-load the information that was just updated by the child.
Example:
User presses (2) to open Editor Window(3) (Editor window is opened and the Callback function is passed as a parameter)
User presses "OK" button (4). The "OK" button event handler updates the changes, then calls the Callback function which re-loads the now updated information, and closes the popup window.
Once the popup closes, the parent window now displays the information that the popup/editor just updated.
This takes some client side javascript (jquery) development but it is quite do-able normally.

sitecore - dot in rich text editor

I'm finding that some strange things are happening with my rich text editor in Sitecore 6.6. Some users have been entering content that is breaking items. Looking at the text it seems fine but when I copy the text into notepad I can see this dot character "ยท"
Any time this is in the text editor clicking Show Editor does nothing and I can't view raw values either. When I click Edit Html the edit box comes up but my changes will never save, the only way I can seem to fix these pages is if I update the content straight into the database.
Is there a way I can:
Prevent these characters from getting into the database,
Update the content without having to run update statements on the database?
Thanks in advance.

save disabled on sitecore page editor

I'm been working with Sitecore for a while, but this is my first time on the page editor.
So, I go to my sublayout and I place a sitecore tag instead a .net tag
<sc:Text ID="txtContent" Field="Content" runat="server"/>
Content is the normal content field on the sitecore page.
When I go to the page editor, I'm able to see the correct content and do some editing but the save button is disabled and my changes are not saved at all
I'm I missing something very basic here?
this is a screen cast on what I'm doing
http://screencast.com/t/0itqgjGVQx8
Update: After including jquery.noconflict constructs, the execution moves to the handler function in the ribbon correctly. BUT it seems that the button itself is disabled. Is it possible to enable/disable the button? is it disable on specific situations? if so how can I enable it.
There might be invalid html appearing. Check you hints for buttons, etc. There might be non-escaped texts on the page.
I've resolve this some time ago... in the sublayout definition on sitecore there was a redundant/wrong compatible rendering definition. Once I removed that, the save button appeared and the sublayout started to work as expected

SalesLogix Null Values

I am working on SalesLogix 7.5 C#.
I have an aspx page which has a text-box as a control which is a mandatory field. When i enter some data and save, it is saved. Now, when i edit that record and make that text-box as blank it gives me an Error Message saying that this is a mandatory field please enter some value.
Now when I enter the same value as it was before editing, it still shows me the text-box as blank.
Example:
I put "James" in the textbox and save.
On editing: i made it blank (recieved an error message).
Again I entered : "James" (Got the same Error Message)
Sorry, unable to add a comment to the original question but need some more information.
Are you doing this via App Architect or in ASP.NET outside of SalesLogix?
Are you doing this as a QuickForm or a custom SmartPart?
Can you provide the tag for the field that isn't working and the relevant lines from the OnAddEntityBindings function in the .aspx.cs?
Have you stepped-through via the Visual Studio Debugger your btnSave_Click code to check it's saving correctly?