Repository Nested Snippets
Moderators: Alexander Halser, Tim Green
Repository Nested Snippets
I am wondering if it is possible to include one snippet within another in a repository, and if so how to reference them in the repository, so when they are added to a regular project both parent and child snippets resolve properly.
s.
-
- Posts: 30
- Joined: Thu Jul 26, 2018 1:35 am
- Location: syd - AU
Re: Repository Nested Snippets
hi scotcro,
just make sure the repo project has its own topics folder as one of the project search paths and you should be good to go.
just make sure the repo project has its own topics folder as one of the project search paths and you should be good to go.
All the best,
Simon
Simon
Re: Repository Nested Snippets
Simon, Thanks for the quick response. I had already done that in the repository.
I should clarify that I want the child snippet to be linked, not pasted in.
I can easily insert the child snippet in a repository topic and it looks good in the repository, but when I insert the parent repository topic into a normal project, the parent topic links fine because it has the repository name prefix in the snippet tag: ,
but the child snippet within the parent does not have the repository name prefix:
resulting in the "Missing Snippet" error.
I should clarify that I want the child snippet to be linked, not pasted in.
I can easily insert the child snippet in a repository topic and it looks good in the repository, but when I insert the parent repository topic into a normal project, the parent topic links fine because it has the repository name prefix in the snippet tag:
Code: Select all
<snippet src="ESPBaseRepository::Activities.Add_Budget_Item" inline="false"/>
but the child snippet within the parent does not have the repository name prefix:
Code: Select all
<snippet src="Ideal_Scope" inline="false"/>
s.
- Tim Green
- Site Admin
- Posts: 23181
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Repository Nested Snippets
Hi Scott,
That's a stumbling block, but there's a trick you can use to work around this. Instead of using the From Topic option to insert the child snippet within the repository use the From File option and select it directly from the \Topics folder in the repository directory. Then it will be correctly referenced, even when its parent snippet is used.but the child snippet within the parent does not have the repository name prefix:
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Re: Repository Nested Snippets
Thanks Tim! I'll give that a try.
Any thought of remedying this in the future with something like '.::mychildsnippet' or '::mychildsnippet' to cause it to reference the parent snippet repository?
s.
Any thought of remedying this in the future with something like '.::mychildsnippet' or '::mychildsnippet' to cause it to reference the parent snippet repository?
s.
s.
- Tim Green
- Site Admin
- Posts: 23181
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Repository Nested Snippets
We're looking into it.scotcro wrote:Thanks Tim! I'll give that a try.
Any thought of remedying this in the future with something like '.::mychildsnippet' or '::mychildsnippet' to cause it to reference the parent snippet repository?
s.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
- Tim Green
- Site Admin
- Posts: 23181
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Repository Nested Snippets
Hi Scott,
Update: This has now been changed. Now nested snippets from a repository (i.e. that are nested within the repository) should work normally when inserted directly. The change will be included in the next maintenance update but you can get it in advance with the stable beta if you like:
https://www.helpandmanual.com/download/ ... p-v743.exe
Update: This has now been changed. Now nested snippets from a repository (i.e. that are nested within the repository) should work normally when inserted directly. The change will be included in the next maintenance update but you can get it in advance with the stable beta if you like:
https://www.helpandmanual.com/download/ ... p-v743.exe
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.