• Anonymous
  • Login
  • Register
BlogSphere - Feature Request: Make PermaLink values editable for static pages


For example, I'd like my "About Us" page to be domain.com/blogsphere.nsf/plinks/AboutUs instead of of domain.com/blogsphere.nsf/plinks/JSMT-5MNRGB.

As long as the validtion formula prevented duplicates and illegal characters, I don't think it would introduce any problems.

Here's some code I've seen (I didn't write this and haven't bothered to optimize it yet) that may work very well for this purpose. It was written for a field name of PageName and there's a computed for display after validation field called tmpOldPage hidden on the form.

isNew := @IsNewDoc;
isBlank := PageName = "";
notStillTheSame := !(PageName = tmpOldPageName);
unSafeChars := "\"": "\\" : ";" : "/" : "?" : ":" : "@" : "=" : "&" : "<" : ">" : "#" : "%" : "{" : "}" : "|" : "^" : "~" : "[" : "]" : "`" : @NewLine;
asciiRendered := @Ascii(PageName;[AllInRange]);
nonPrintable := (! isBlank) & (asciiRendered = "");
fallBack := asciiRendered != PageName;
unSafe := @Contains(PageName;unSafeChars);
lkup := @DbLookup("":"NoCache";"":"";"pages";PageName;2);
lkupOK :=!@IsError(lkup);
lkupIsDup := @If(lkupOK;
  @Elements(lkup) > 1;
 @False
);
lkupIsMe := @If(lkupOK;
 lkup = @Text(@DocumentUniqueID);
 @False
);
@If(!@IsDocBeingSaved;
  @Success;
 isBlank;
  @Failure("You must enter a page name");
 lkupIsDup;
  @Failure("The new Page's name is a duplicate. Enter a unique page name.");
 lkupIsMe;
  @Success;
 notStillTheSame & lkupOK;
  @Failure("The new Page's name is a duplicate. Enter a unique page name.");
 unSafe;
  @Failure("The page name contains a character that is unsafe for URLs");
 nonPrintable;
  @Failure("The page name contains a non-printable character that is not allowed for URLs");
 fallBack;
  @Failure("The page name contains a non-ASCII character that is not allowed for URLs");
 @Success
)



Taken Actions by Owners



Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.