Assuming there is some way to do this... I am using WSS 3.0 and SP Designer 2007. I've changed a list to its XSLT data view in SPD, and am trying to add a formula to display the first 250 characters of the body text, and then IF there are additional characters, add a "(more)" link to the list item.
The problem I'm running into is the conditional aspect... the following successfully adds the "(more)" text and links correctly. But I can't seem to figure out how to only execute it if the body text > 250 characters. Any ideas?
concat(substring(#Body,0,250),'... (more)')
I can use string-length(#Body) to get the length... but how do I put these together?
Thanks,
Mark
Does this help?
<xsl:choose>
<xsl:when test="string-length(#Body) > 250"></xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
Some time ago I wrote an article on my blog about creating short descriptions (basically the same case that you're mentioning but then for the Content Query Web Part). It might help you get some answers. The article is available # http://blog.mastykarz.nl/generating-short-description-content-query-web-part/
Related
Netsuite Custom Print Templates: My negative numbers are coming in with a trailing symbol (100- instead of -100)
It is a custom print from a ftl file in the fileCabinet. It is very weird and I can't seem to figure out if it has to do with the NS environment setup or maybe I should be doing something in the FLT file to fix it? I was able to find a reference to this in the NS documentation - link - but it is not regarding a print its regarding reports.
HELP PLEASE -_-
You can try these in the template to at least know what setting causes this:
<#setting locale="en_US">
<#setting number_format="0.####">
If neither, then it's certainly an RTL issue. In languages where you write right-to-left (RTL), Arabic numbers are still written left-to-right, but in some the sign stays on the right side. So 100- is how it should look, in some language. But this rearrangement is not in the raw text, it's how for example a browser renders the text.
I have a Windows Application, which has a control type: Client and
class name =WindowsForms10.WIndows.8.app.0.3ce0bb8_r11_ad1
It is like a sub title bar. It has a text which displays the number of records in the table below. I want to extract that number of records. How ever when I spy using UIMap-CodedUI Test Builder, it highlight the entire title bar and does not only highlight the number of records. Is there any way I can handle this.
I want to extract 495 from the title bar. How can I do that?
Thank you all for your reply.
I could figure out an answer.
1) 495 is not shown as a UI control.
2) I found a work around , I can calculate the rows in the table below using UISyncDataGridTable.Rows.Count
and it serves my purpose.
You could use AutoHotkey. This or this function should be able to complete the task you want. The installer also comes with windows spy, which might help you pinpoint the control class you want to extract the string from.
I am currently working on customizing a corporate GSA box for the client's website with Goggle's XSL stylesheet.
Unfortunately I do not have direct access to the box, this involves a meeting with a fellow in another timezone, so experiments and learning is very short on my part.
One of the biggest issues we are having is weather or not it is possible to get more characters/words into a resulting search-snippet in the XML output. More specifically, the returned field.
I've gone through a lot of the documentation for this and so far I've only found the tlen value for Title length, but not snippet length.
I know there are some parameters (hidden fields) to customize some options in the search form, but not finding anything relating to this. Since I can not access the Administrator Control panel itself, I've no idea what options are there. Can anyone point me to something that will help with this? It's greatly appreciated, I'm striking out on this.
BTW; we are at the current Version 6.14 I believe.
The GSA administrator can increase the length of the snippet. This is a system wide setting and not able to be customized at query time.
See this
http://www.google.com/support/enterprise/static/gsa/docs/admin/70/admin_console_help/serve_query_expansion.html#snippets
Changing the Snippet Length in Search Results
By default the Search Appliance, for most languages, will return Snippets with the length of 160 characters. Some exceptions to this rule are CJK languages for which Snippets are by default 240 characters. To Change the Snippet Length:
Under Snippet Generation, type a number in the Snippet Length box. The number must be bigger or equal to 0 and not bigger than 1024.
Click Apply Snippets Generation Settings.
I'd like to start off by saying I'm very new to Sharepoint, so I'm sorry if I'm asking something very obvious. I've done quite a bit a googling and can't find an answer to my question. This leads me to believe that maybe I'm asking the wrong question. So, here goes:
We have a Sharepoint webpage that currently contains 3 Web Parts (2 lists and a text filter). The text filter can be used to filter the two lists. I've been asked to provide the following functionality:
A user must be able to open this page from an http link (easy)
The Text-Filter must be automatically filled-in and applied, thus immediately filtering the two lists
This seemed pretty straight-forward to me: Pull a parameter from the page's URL and feed it into the filter.
I found and added a Query String (URL) Filter and I managed to pull the parameter from the URL, but I can't feed it to the existing Filter!
Sure, I can pass the value to the two lists (effectively coding the same filter two different ways) but that seems wrong. So, my question boils down to this:
Is it possible to set a Text Filter's value from a Query String (URL) Filer?
Am I asking the wrong question? Am I looking at this problem in the wrong way? Any help is much appreciated, thanks.
I was asking the wrong question!
It seems you can set a Text Filter's value on page-load through the URL. Here's how:
http://sharepoint-server/site/subsite/project/default.aspx?Text%20Filter%20Name=999
Where Text%20Filter%20Name is the name of your Text Filer (in this case, with spaces in the name), and where 999 is the value you're passing to the filter.
I currently have a normal SharePoint list with about 15 columns or so. I need one of the columns to have a list of links. I know SharePoint lets you have 1 link and it also lets you have multiple lines of text... So I thought it would be there as an option, but no such luck. Anyone knows a solution for this? I wasn't able to find any info online, which doesn't happen often. I guess I wasn't looking for the right keywords? If anyone can point me into the right direction, it would be great!
Thanks
-V
Maybe a multiplelines text field, and configured it to be Enhaced Rich Text enable. It would allow you to insert your links as in a HTML page (it would be the same as to use a CEWQ)
We have a custom filed CALLed Document Link Field that enabled you to link multiple documents to a list item, maybe this is what yuo are looking for. In any case either you need a custom field, or use a multiple lines of text
Infowise Document Link Field