How to add collection variables in Postman? - postman

It says in postman doc that
Collection variables can be defined by editing the collection details. Click on the ellipsis (…) next to the collection name, and select “Edit” to open the EDIT COLLECTION modal. Select the Variables tab to add and edit collection variables. You can also define collection variables when creating the collection.
The problem is that when I go to edit collection dialog, there is no Variables tab.
How can I add variables to collection in Postman?
Thanks!

Thanks to #Danny realized that I was using older version of Postman.

Related

Hide a field on changing of Ticket Status in Vtiger

Hi I want to Hide Some Fields like Ticket solution when Ticket Status is changed to open. How to do it ?
Adding to the above comments , you can also copy Edit.js inside layouts > v7 > modules > Helpdesk > resources from some other layout. There you can write your own code inside registerEventForPicklistDependencySetup function. Dont forget to remove other unwanted functions.
I would recommend using javascript for that task. Use a jquery selector to retrieve the value of ticketstatus and hide the container of the solution field if depending on the status.
You can use jQuery to perform the task. In vTigerCRM the actual name of the ticket module is HelpDesk. So to change the detail view of ticket module you need to edit layouts/vlayout/modules/HelpDesk/DetailViewHeaderTitle.tpl
file. For your reference, I am providing you with a sample.

Is it possible to set a default webcontent template in liferay?

maybe you can help me.
I use verison 6.1.1 ce of liferay.
I have installed the "default-web-content-hook" from plugin-repo.
I want to set a default template for the webcontent display portlet, so that when a user clicks "Add Web Content" and the editor opens up, a certain preconfigured template, like "carousel" from the default-web-content-hook.
Anyone found out how it works?
Thanks guys, you're the best!
Have a nice weekend!
I think that there is no such option in Liferay which would set the default structure (template).
But it could be achieved in several ways.
You could just edit the link which opens the add web content dialog and append the structureId param with appropriate value.(&_15_structureId=MULTIPLE-ITEM-CAROUSEL)
Other option would be modify /portal-web/docroot/html/portlet/journal/edit_article.jsp and when the structureId param is null insert there a value. This value could be hard coded or supplied via configuration.
Also you could modify com.liferay.portlet.journal.action.EditArticleAction.

Sitecore ECM: Subscription module

I need to insert a Subscription form into a CMS Web page.
I though to re-use the default source code already developed and coming with the ECM package after the installation.
In the Layout/EmailCampaign folder there is an user control: Subscription Form.ascx
In the OnInit method, they are calling another method to retrieve some parameters.
Parameters like Require Authentication, Show List, Target Audience List.
Is there somebody who knows where do I have to define those parameters ? They are all the time empty or null.
Thank you,
Hmm or maybe it's done on the Target Audience you associate to the control. You may be able to add the required parameters when added the control to a layout/sub-layout or when adding through presentation settings.
I believe these are configured when you add the control as a component. You can change the settings when you edit the related item for the component when added to the page.
The parameters you mention, usually comes from the data-template:
/sitecore/templates/Email Campaign/Subscription Sublayout Parameters
And you set them where you assign Layout Details to the presentation item:
This applies to my Sitecore 6.5 installation, in the administration content editor:
Choose your item, click Presentation, in the Layout section, choose Details, choose Edit, choose the tab Controls, locate the sublayout that represents your subscribtion form and choose Edit.
In the following popup you will be able to set the values of the parameters that you mention.
If you don't see the three parameters Target audience list, Require authentication and Show list here, you might have forgotten to assign the datatemplate :
/sitecore/templates/Email Campaign/Subscription Sublayout Parameters
...to your parameter template on your Sublayout item.
I suspect the last section to be your real problem, due to the fact that you get null values

Selecting a datasource item for preset components

Before digging into my explanation i will summarize my question:
How do I provide the user (editor) with a user-friendly possibility to select a datasource item for sublayouts that are preset on the standard values?
My situation is as follows:
I have a page template, with pre-defined layout on the standard values.
Let's say the layout consists of:
one placeholder "wrapper"
one sublayout "content"
This sublayout is pre-defined on my page template, but can also be placed in the placeholder using the Page Editor.
It needs to have a datasource item that defines a Title and Body value.
Now, if a user adds this sublayout to the placeholder using the Page Editor, he will get a nice interface to select or create the datasource item (see screenshot).
However, if the sublayout was pre-defined on the standard values, it will be added without datasource (I can't pre-set the data source in the standard values because it's still unknown by then).
At that point there seems to be no way to get to that nice interface for selecting or creating a datasource item.
Ideally I want to be able to add a field to my template that can hold a datasource item which the user can select/create using the nice interface. I looked at the datasource field type, which could be an alternative, but it's still not exactly what I want.
Bare in mind that the content sublayout is just an example.
I understand that in that specific case I could solve it by always adding a title/body field to the template which hold the values if there is no datasource, but for my real world problem that won't suffice.
I don't have a whole lot of experience with the Page Editor (with the new way of working with it) so I would like to get some advice on this subject.
According to what you said here:
Ideally I want to be able to add a field to my template that can hold a datasource item which the user can select/create using the nice interface. I looked at the datasource field type, which could be an alternative, but it's still not exactly what I want.
It seems you want an intuitive data source selector interface in the CMS shell similar to the Page Editor-based UI.
Quick answer: Simply put, there's nothing that does this for you in Sitecore.
Longer answer: There are still some options for you, e.g.
Define a global "dummy" data source and set that to be the data source set in in Presentation > Layout Details of the template's standard values. So every time you create a new page, it will always point to that dummy value to show something.
From here you can do a few things:
If the user must use the shell UI and not Page Editor, they can simply create another data source item for the specific page and update that page to point to it using the existing native interface in Layout Details.
Another option is to write an event handler, say for item:created or similar that when you create an item, auto-create a corresponding data source item for this specific page (whether this auto-created item be a sub-items or global item...) then programmatically set this to be the data source. A similar concept is shown in this video by Nick Wesselman: http://www.techphoria414.com/Blog/2012/May/Sitecore_Page_Editor_Unleashed

Sitecore - multiple instances of a sublayout on a page

We have created some reusable components for our site and have hit a problem when trying to add more than one instance of these component to a page. This is an issue because Sitecore needs the placeholder key to be unique. Does this mean you can never add more than one instance of a sublayout with a placeholder on to the same page?
Example:
Two column sublayout - placeholders 2column-col1 and 2column-col2
Three column sublayout - placeholders 3column-col1, 3column-col2 and 3column-col3
On the page add a two column sublayout, a three column sublayout and then another two column sublayout
There are now 2 placeholders with the name 2column-col1 and 2 placeholders with the name 2column-col2
Is there any way around this? We thought of dynamically creating the placeholder key in the user control code behind but this causes problems if you want to use placeholder settings.
It seems that it would be a common thing to want to do. Is there a workaround?
What you can do is dynamically create the placeholder keys to get the desired functionality and then manually create 5-6 placeholder setting items and duplicate the settings for all of them. I have done this in one project and it works well even though it's very ugly.
If you are using sitecore 6.4+ you might even be able to use cloned items to create the placeholder settings. This way you will be able to control the allowed sub-layouts from the original item and all the rest will just inherit the values.
Hope that helps.
I believe this is a duplicate of your SDN post, but for reference I will link my blog post (with prototype solution code) here as well.
http://www.techphoria414.com/Blog/Dynamic%20Placeholder%20Keys%20Prototype.aspx
In Sitecore 6.3.1 there is a setting in web.config
<!-- DUPLICATE PLACEHOLDERS
Indicate whether to process duplicate placeholders
Default value: false
-->
<setting name="Rendering.ProcessDuplicatePlaceholders" value="false" />
I think this setting is available on all versions of Sitecore 6.
You should give it a try and change it to "true".