Home RSS 2.0 ATOM 1.0  CDF  
 
CodeSegment - Carlos Segura Sanz (blog)
 
Page 1 of 1 in the csegMiniWiki category

Jugando con mi nuevo webpart csegMiniWiki, he caído en la cuenta que en la lista de contenido hay ciertos campos ocultos (los que tienen todas las listas) de modo que he cogido mi webpart csegScriptWebPart para examinar la lista y ....

Como es lógico están todos los campos ocultos, bien ahora cómo csegMiniWiki puede reemplazar el nombre de un campo por su contenido he probado a ver que pasa y ....

Ahora podemos ver quien y cuando creo la entrada, quien y cuando se modifico y alguna cosita ms...

Wednesday, October 12, 2005 1:11:41 AM (Hora de verano romance, UTC+02:00)   #    Comments [1]   csegMiniWiki  | 

csegMiniWiki is a small wiki for sharepoint, the last week I began to work in a webpart to edit a knowledge base called csegKbase now this webpart is csegMiniWiki.

This webpart use a list to store the content, each list entry has an unique id based in the "Title" field and the content is stored in a rich text field called "Content". Based in this two fields the webpart show as default entry the title specified in the properties and show yours content field.

The Content list:

Field Name Use Type
Title Title of the entry (used to link) Text
Content To store the content Rich-Text
ParentEntry Link to the parent entry Search

How the content is stored in a rich text field we dont need use complex commands to edit the content, then to link one entry with other we only need write the title between brackets '[]' after the webpart replaces the title with the link to the entry. Note, this is not case sensitive match, rest of commands are case sensitive.

In addition there is others two commands to add links, {Link|url|link-text} it generates a hyperlink to url with the text title, and to insert an image you can use {Image|url|alternate-text}.

Like generally the content is organized in a tree the list has other field called "ParentEntry" that it is a search field, based in the same content list using "Title" field.

To make navigation links there is some additional commands:

{Parent} Link to parent entry
{Parents} Link to parents entries breadcrumb
{Childs} Link to child entries breadcrumb
{Brothers} Link to brothres entries (has the same parent) breadcrumb
{Bullet-Parents} Same that parents but in bulleted list
{Bullet-Childs} Same
{Bullet-Brothers} Same

And finally, if you want you can add other fields to the list and show your content using '[]' brackets.

 

List Permissions, there are three properties "Allow auto new", if checked if you has a link that has no entry in the list the entry is created and the webpart redirects to the list to add the content, if the user dont have add permissions in the list the entry is displayend empty. 

"Allow edit" shows always a link in the bottom to edit the content.

"Allow Edit entries based in list rights" show the link to edit entries only if the user has rights to edit the list content.

 csegMiniWikiWebPart.zip (18,7 KB)

Sunday, October 09, 2005 11:48:55 PM (Hora de verano romance, UTC+02:00)   #    Comments [1]   csegMiniWiki  | 

Page 1 of 1 in the csegMiniWiki category

Copyright © 2008 Carlos Segura. All rights reserved.