Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
It's the content type you should add the ImageUrl attribute to, not the controller.
Yes you are right. I had this in the PageTypeModel. Please ignore the PageController ;-)
namespace Modules.Pages.Standard.Models
{
[ContentType(
DisplayName = "Standard Page",
...
Order = 1)]
[ImageUrl("/Modules/Pages/Other/Ressources/Img/Icons/page-type-thumbnail-standard.png")]
public class StandardPage : PageData
{
...
Sorry
You don't, but you need to put them where the static file middleware can serve them (or configure the middleware to use the location where they are now).
How do I copy the stattic files to the location. I thought the "<CopyToOutputDirectory>Always</CopyToOutputDirectory>" did the trick. Even with a destination folder set, the file isn't there.
<CopyToOutputDirectory> element has an effect mostly in the current project. You can achieve this with build actions inside .csproj file. But this might work only on local development environment.
I needed to copy modules files to test Alloy sample app in my package solution (normally it would be done while installing NuGet package) - but locally, to avoid manual copy, I added this snippet to my .csproj file.
Hi,
as we use multible projects in one solution
I want to place the PageType or BlockType Prevview Icons inside the "ModulesProject/Modules" path. But when i try to accesss them with the annotation in the PageController
it can't be found in MyOptimizely. I tried with
in the moduleproject.csproj, but the "PageIcons" just don't appear.
Is it possible to place the "Block"-Thumbnails inside the ModulesProject at all, or do I have to tell some CI-Pipeline to copy the stuff for me?
Have a great week,
Ralph