In alfresco document property page title is not getting displayed - alfresco

After uploading document in alfresco site I am clicking edit properties,
but the title at header is not getting displayed properly.
please refer below attached image to understand issue.
Regarding this I have checked the logs in browser console as well as server logs at repository level.
But there is no error.
So I am not getting how to resolve this issue.
Also I have observed that if we open document and then click on edit properties, then its getting displayed properly.
Please suggest me, what will be the issue and how to tackle this type of problems.

Is this a custom form?
If you have defined it in share-custom-config.xml you could insert a template to display the name too.
EDIT:
It might work this way, i havent tried it:
in your form definition
<appearance>
<field id="my:nameType" label="Title Type" mandatory="true" read-only="true">
<control template="/org/alfresco/components/form/controls/custom.ftl">
<control-param name="titleType">My Type</control-param></control>
</field>
</appearance>
you should implement you custom.ftl to display what you want

Related

How to give styles for Angular 2 primeng auto search textbox?

Hi I have implemented auto search option in Angular 2 using primeng. I have found reference in https://www.primefaces.org/primeng/#/autocomplete site. when I implement same code in my project I do not see suggestions filling in drop-down box list. I have added screenshot below.
Below is my code.
<p-autoComplete autofocus name="username" [(ngModel)]="username" [suggestions]="filteredUsernamesSingle"(completeMethod)="filterUsernameSingle($event)" field="userName" [size]="30"
placeholder="Enter UserName" [minLength]="3" required></p-autoComplete>
In reference website when user tries to search some test, everything comes in dro-down list. But when I implement I am not getting any drop-down list as I shown in above image. Can someone help me where can I add styles to make suggestions come in drop-down box list?
I had the same problem. I was passing a string[] array into [suggestions]. After examining their example it started working after I started passing an array of objects instead. Apparently the autocomplete component expects an object with a property specified in the field directive, otherwise it can't reach the value and format it properly. Try passing it an object with a userName property, since in the HTML you specified field="userName".
Check the documentation page primefaces getting started. You'll see instructions to add the primeng css and primeicons and a theme css file that you will use as the theme for your site, to the project's angular.js file. This will work like <link rel="stylesheet" href="styles.css" /> embedding of external css files to a web page.

Custom template for collection

I'd like to create a page template that lists all of a particular content type where a certain value is true.
I assume the best way to do this is to make a custom page template for a collection.
So I follow these instructions here:
http://www.uwosh.edu/ploneprojects/docs/how-tos/a-minimalist-view-for-collections
But I get an error "Macro expansion failed" as described here:
Page template Macro expansion failed
However the answer there doesn't make sense to me. I'm not sure where to define that macros, is it in the type's .py file?
Does the combination of these two links describe the whole process or is the more to it?
I the process described in full anywhere else?
OR am I thinking about this the wrong way, should I not be using a collection, just a new view for the content type that does the sorting itself?
You're getting that error message right after you paste the tutorial's example code into portal_skins/custom/collection_minimal_view, right?
That's because Zope is trying to anticipate what you're doing, but it doesn't know what the variable 'context' is going to be and it can't be sure 'context' will have a 'standard_view' attribute.
At any rate, if you ignore the error message, and follow the rest of the tutorial the new view does in fact work.
However, it isn't best practice to keep long term customizations in the custom folder, or really portal_skins, for that matter. A better approach would be to put the template in a package and register in your ZCML with:
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="plone">
<browser:page
name="minimal_view"
permission="zope2.View"
for="plone.app.collection.interfaces.ICollection"
template="collection_minimal_view.pt"
/>
<browser:menuItems
for="plone.app.collection.interfaces.ICollection"
menu="plone_displayviews">
<browser:menuItem
title="Minimal view"
action="minimal_view"
/>
</browser:menuItems>
</configure>

Alfresco Share 3.3 - How do I get my new custom type to appear in the Create Content drop down?

I have created a custon type. I can create a Plain Text content item in Alfresco Share and Convert Type to my custom type (my:foo). So far so good.
But, how can I add my custom type to the Create Content drop down?
I tried this by creating $TOMCAT/shared/classes/alfresco/extension/web-client-config-custom.xml
<alfresco-config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="my:foo" />
</content-types>
</config>
</alfresco-config>
But this has not helped. Any ideas?
You haven't specified exact version (3.3a through 3.3g), there are lots of changes from minor to minor version.
Take a look at this topic, you could use some hints.

Display message in XSL formatting features for an RTF field in SDL Tridion 2011 Sp1

I have added some xsl formatting features to one RTF field in schema.
I have used the following snippet in it. For any error, I need to stop component save and display some custom message to user.
<xsl:message terminate="yes">
<xsl:value-of select="'Some error message'"/>
</xsl:message>
Its stopping the component save, but not displaying the message.
Can any one letme know is there any better way of doing it.
Thanks in Advance.
XSLT templates here cannot be used to display messages, only to transform content.
If you want to show an error message to the users, I'd recommend to check these 2 blogs:
Validating Content on Save - part 1
Validating Content on Save - part 2

Plone imagemaps error with zopyx.tinymceplugins.imgmap

I'm using Plone 4.2. I had the need to manage imagemaps in my application so I installed the following product: http://pypi.python.org/pypi/zopyx.tinymceplugins.imgmap. This product uses TinyMCE to edit the images and add links to them.
After installing this product, I noticed that I am now unable to view my TinyMCE controls while editing a content type. Looking at my browser's error console, I notice that all my *.kss cannot be read. This is the error that is displayed for all *.kss files:
Error: The stylesheet http://localhost:8082/plone/portal_kss/My%20CMS%20theme/++resource++tinymce.kss/tinymce.kss was not loaded because its MIME type, "text/plain", is not "text/css".
Source File: http://localhost:8082/plone/folder-test/image-maps-test/page-with-imagemap/edit
Line: 0
I do not understand why there should be error regarding the MIME type. Anyone has a clue on how to fix this?
Additionally, I get the following:
GET http://localhost:8082/plone/portal_javascripts/My%20CMS%20theme/plugins/imgmap/editor_plugin.js 500 (Internal Server Error)
Just to answer my own question:
I opened the product's skins.xml file
(i.e. zopyx.tinymceplugins.imgmap-0.3.1/zopyx/tinymceplugins/imgmap/profiles/default/skins.xml)
This is how it looks like:
<?xml version="1.0"?>
<object name="portal_skins" allow_any="False" cookie_persistence="False">
<object name="zopyx_tinymceplugins_imgmap"
meta_type="Filesystem Directory View"
directory="zopyx.tinymceplugins.imgmap:skins/zopyx_tinymceplugins_imgmap"/>
<skin-path name="Plone Default">
<layer name="zopyx_tinymceplugins_imgmap"
insert-after="custom"/>
</skin-path>
<skin-path name="Sunburst Theme">
<layer name="zopyx_tinymceplugins_imgmap"
insert-after="custom"/>
</skin-path>
</object>
It appears that the product has been geared towards specific themes.
Now, my application has a custom theme i.e. MyCustomTheme. When I inspect my portal_skins
Site > Zope Management Interface > portal_skins > properties
I notice that indeed the "Sunburst Theme" has included the zopyx_tinymceplugins_imgmap skin layer in the 'Plone Default' and 'Sunburst Theme', but NOT in my 'MyCustomTheme'. It has added it right after the custom layer.
So I go ahead and manually add zopyx_tinymceplugins_imgmap in MyCustomTheme, just immediately after the custom layer.
This manages to fix it, and I can now view my TinyMCE controls. I believe there must be a better way to have it work.
Hope this helps someone in future.
UPDATE: See this for a better solution.

Resources