Add option to hide alias on folder top part

0 votes
asked Nov 10, 2018 in Wanted features by ccharabaruk (180 points)

I want to be able to add folders with aliases, but not have the alias show up in the diagram. That is, where it says "static" in the top part of the folder in the sample diagram here, I want to be left blank.

@startuml
skinparam defaultTextAlignment center
skinparam wrapWidth 200
skinparam maxMessageSize 150

hide stereotype

folder "==Static Content\n//<size:12>[File system]</size>//\n\n Serves static files from API website root" <<component>> as static
@enduml

Is there a way to do this now, or could we get a skinparam for folder (and probably package since it seems to be the same underlying shape) that can turn off alias display? Thanks.

1 Answer

0 votes
answered Nov 12, 2018 by plantuml (208,360 points)

Finally, to keep things simple, we left blank the top part for folder, but not for package.

So you can have:

@startuml
skinparam defaultTextAlignment center
skinparam wrapWidth 200
skinparam maxMessageSize 150

hide stereotype

folder "==Static Content\n//<size:12>[File system]</size>//\n\n Serves static files from API website root" <<component>> as static1
package "==Static Content\n//<size:12>[File system]</size>//\n\n Serves static files from API website root" <<component>> as static2
@enduml

http://www.plantuml.com/plantuml/uml/nSxFIiD04CVn-px5q1V87_0YQMWH10-24C63yJ0clwHBTsUNtObjVNeZ8lGDUfmlyu7VBYidNRmp-MWbSc9F8oPUdBxYh7jdP_4GfG6YI5TVfyJnpOvweBeihxhdypDovXcT_GPLTwKn1pk2iY8Xw2N2c2cu4Oassssdh7QWXo0AqLwAeichkw_gzltHkfLTLkW_ck8tjqNHIo_K8NqXK_x3atNhCQNWQV_oH2TyPgkW589kg6c6u6CGYBOjyJ-gJEJXo3DkEQ8sEyYuUFS3

Does it sound good ?

...