ArticleBundle Draft article list visibility - sulu

Helo, developers...
I am using SULU CMS, and as an option I installed ArticleBundle... Now, it is, basically working, but I have strange thing going on...
Everything I am describing now is in admin panel (no FE is involved in my problem)
(New published article) *** I click on Articles menu, it opens list of existing articles, and it shows all my published articles... When I click on ADD, form that opens is fine, it works, I fill in all needed data, and then, when I click Save and Publish, it saves, and it is OK... When I return to list of articles, that article is visible and editable..
(New Draft article) *** I click on Articles menu, it opens list of existing articles........ I click Add.... and when I click Save as Draft it saves article (I have UUID in url that I copy), but, when I return to list of articles, that DRAFT article is not shown in list... When I use link, directly (by entering UUID I got when creating article), it opens normally, editable, and when I click Save and Publish it works as it should be..
Please, If someone can help me how to get, also, Draft articles in initial list of articles, so I can click and edit it, and publish, too...

First check your User-Role if all article-bundle security rules are added.
Watch out there is a section "Article types" and a section "Globals" which are restricting your access to article-types and articles in general.
When this brings no change, do you have multiple article types and just open the wrong type tab or have no "all" tab (added by configuration).
For further investigation your Sulu, ArticleBundle and ElasticSearch versions would be appreciated.

Related

editing a google form response and data lost

I have created a standard google form and added a record. i have set options to edit the response . one of the questions i have added allows me to jump straight to submit or continue editing .
However When i am editing a response and i choose the my option to jump to submit and then press submit , i find the information is lost when i go back to edit the response.
However if i scroll through all my answers and submit at the end, then the data is saved.
Is there an issue with google forms ? i am not using any scripts - it is standard editing and form options.
This appears to be an issue with Google Forms when editing responses and changing the "go to" path from the initial submission. I've opened a question with a Google "Community Specialist" in the Google Help forums but so far she has not identified how to avoid this problem nor reported escalating it to get it fixed.
For those curious what to avoid, here is the scenario that causes a form to lose data:
Create a form with multiple Go To paths
Fill out a response using one Go To path of questions
Submit response
Click Edit Response
Choose an option that takes you down a different Go To path of questions
Submit the edited response
Click Edit Response
Going back to the original option Go To path, the earlier submitted data will now be gone.
Here is a form I've created that demonstrates the issue.
Here is the thread that as of this writing the Google Community Specialist has not yet solved. Perhaps if more people were to comment that it really is an issue she will pay more attention to it and bring it to the attention of who might be able to fix it.

MS Word Personal Templates

I'm working with MS Word and am trying to create a list of customized template(s).
i.e. Open Word (2013 / 2016), in the 'New' menu you'll see a list of "Featured" templates, I would like to add my own list of templates.
Through research (Handy Blog), I've learnt that you can create a new template and add it to the "Personal" templates. My problem is, I'd like it to be my own name - instead of Personal, I'd like to have my own heading, say MyCustomTemplates.
From some further reading, I've read a few mixed opinions from this and some even saying that it is impossible, as these 'headings' are hard-coded (Office Forum)
Graphical explanation:
Doing this manually will be my first step, from there - I'll be adding these templates programmatically.
To help anyone that comes across this - below are my findings (including some really useful forums and feedback) and the solution I am most likely going to go with;
After tons of research I have noted and got confirmation that, to change the name of either of the Word headings (FEATURED, PERSONAL etc.) is not possible - Office have hard coded these - see this thread.
You do have some options though:
Using the PERSONAL tab within Word, you could create your own
templates for use (the name would however, remain "PERSONAL") > This
URL will take you through the process, step by step.
If you prefer using a "Support Office URL" - here it is.
As suggested by Doug Robbins, in this thread - you could "Add the New Document or Template command to the Quick Access Toolbar and create a folder under:
C:\Users[User Name]\AppData\Roaming\Microsoft\Templates". This is not ideal for my implementation.
Create an Addin Template using this URL
Use the Ribbon XML, (this is most likely going to be my route): Create a Ribbon XML for the Word application, the user must select this option (click on your ribbon item), then from a folder that you specify, let the user select a template (that you've added) for them to work with. Load the template to the current word document.
I hope this helps.

K2: How may I open a file in a new window unless I already have such a window open?

I have a K2 Smartform that displays a list of file names. When the user clicks a file name, the program opens that file (all of them are PDFs) in a new tab in the browser (IE). This is good so far. If you click on a second file from the list, it opens in a third tab. That is not what the user wants.
They want the second file selection to open in the same window as the first file.
This is the process I can see:
Click on the file in the list.
Open in a tab.
Click on a second file in the list.
If there is already a tab open with a file from the list, open this file there. Otherwise, open a new tab for the file.
I suppose automatically closing the first tab when they click on the second file would accomplish the same thing.
How can this be done?
When you deal with opening links, first of all, what you can do is limited. Indeed, browsers (IE, Chrome, etc...) can be configured by the users to open links in new tabs, windows, etc... and you as form developer cannot change that.
I have made a jsfiddle to reproduce your situation and propose a solution you can test. I don´t guaranty it will work as I use a Mac but I also describe a better solution below.
You can find it here:
https://jsfiddle.net/chevdor/45k40npv/
I guess the first example (#1) is what happens for you at the moment.
Using the 'target' attribute, I tried to implement a solution that may work for you. Click on #2 and #3 and check whether this work.
I cannot test that since I use a Mac.
You can read more about the target attribute here:
http://www.w3schools.com/tags/att_a_target.asp
Another solution that would give you more control is to use an iFrame control. I think it comes in standard with SmartForms now. If not, you can for sure get it from the community site. I recommend you create a new View with this iFrame and define one parameter (string) called "url".
Let´s speak in K2 rules languages :)
"When the parameter changed", "and the parameters is defined", if you 'Transfer data' passing your URL to the iFrame control, it will display your doc. If the user clicks another document, it will update the SAME iFrame. With this solution, no tab will ever be involved.
Please note that it will work great for any document supported by your browser. Some types may require a plugin. Other documents (ie zip, etc..) will NOT appear but be downloaded instead.
I hope this helps.
Best regards,
-chevdor

New template in Umbraco, won't show on the Template drop down on content pages

Another Umbraco question, apologies.
I've created a new template in the Master templates list, but this template doesn't show up in the Templates drop down list on content pages.
I'm wondering if there's something I've missed, or if there's a way to publish this which isn't immediately obvious.
Any help appreciated.
You need to select the template as an allowed template type for the Document Type of your pages. Lets say you're page Document Type is called "ContentPage" and you've added a new template called "NewTemplate".
By default you won't be able to select the new template when editing your "ContentPage" pages. You'll need to go into "Settings" in Umbraco, and then expand the "Document Types" folder. You'll see a list of all of the Document Types, select the one you want to use the template on ("ContentPage" in this example).
The first tab that you'll see is the "Info" tab. There's a checkbox list called "Allowed Templates" that you need to select your new template in. Save the Document Type and go back into the Content. You should now be able to select "NewTemplate" as a template on your "ContentPage" pages on the site!
I hesitate to engage in thread necromancy, but because this is the first Google result and things appear to have changed in 7.4.3 (the first version of Umbraco I've ever experienced), I'd like to share the process I use to add templates to document types.
Go to "Settings".
Expand "Document Types" and select the document type to which you'd like to apply the template.
Click "Templates" in the top right of the page.
Click "Choose extra template".
Select the template you wish to allow and click "Close".
Click "Save".
Go to "Content".
You should now be able to create new content under the document type you selected with the template you specified.
I hope that helps to save another new Umbraco dev some head-scratching.

MOSS 2007 - Customize Send To Menu

We currently have a need to add a custom menu item to the Send To menu within our document libraries that would allow a user to create a link to the currently selected list item within another library. When the user clicks on the new "Send Link to..." menu item, they should be prompted to browse to the library in which the link should be added. Once the user chooses a destination, the link, along with the metadata from the list item, should magically appear in the selected desitnation library. Once again, we only want a link, not a copy of the file. Is this possible to do? Code examples would be much appreciated.
Does it have to be in the send to menu? Can it also be directly in the context menu (say at the bottom)? If so, you can create a feature that deploys a CustomAction to the site. If it really, REALLY needs to be under the "send to" menu, you are going to have to use javascript (since that is how the out of the box context menu is created) to "hijack" the menu and insert your own item.
IMHO this is rarely needed, a CustomAction is the preferred way of doing this. It is the easiest and most "maintainable" (all it is is a feature + customaction definition with maybe some code, all of which are deployed using a solution).
More info on CustomActions here.
P.S. if you do decide to go with javascript, don't go editing the out of the box sharepoint js files in SharePoint's 12 Hive, but add a ContentEditorWebPart to the page and insert your Javascript in there.
P.P.S. While assigning a method from an assembly as the action for a CustomAction is allowed in most cases, it is not for the ListEdit (item) context menu.
What they say is that "Sharepoint server 2010 will have it out of the box", i.e. documents may stay where they were created and links go to the Records center (named "In Place Records Management, see http://www.cmswire.com/cms/document-management/the-scoop-sharepoint-2010-records-management-005948.php).
MOSS 2007 requires the actual document to be copied to the Records repository to be registered.