Hi,

There are several ways to add static HTML pages easily.

1) Easiest option is to just add it under "src/assets", e.g. 
"src/assets/mypage.html".  This requires rebuilding the UI, and the static 
page will be available at "[dspace.ui.url]/assets/mypage.html".
2) Another option is as Mark Wood notes, adding a new "assets" 
configuration to angular.json in this section: 
https://github.com/DSpace/dspace-angular/blob/main/angular.json#L44-L47  
For example to add a "/static" path update it to be (only the last "assets" 
entry is new):

"assets": [
  "src/assets",
  "src/robots.txt",
  "src/static",
],
Then, rebuild your UI again.  After that you can add any static pages you 
want under the "src/static/" folder (you'd need to create this folder) and 
they will be available under "[dspace.ui.url]/static"

Tim
On Thursday, June 9, 2022 at 7:40:11 AM UTC-5 [email protected] wrote:

> On Thu, Jun 09, 2022 at 04:25:25AM -0700, Mariusz wrote:
> > I join the question.
> > 
> > piątek, 3 czerwca 2022 o 16:06:00 UTC+2 [email protected] napisał(a):
> > 
> > > Can anyone please help me with steps required to add a static page in 
> > > DSpace 7. 
> > >
> > > Thank you
> > >
>
> This might help:
>
>
> https://stackoverflow.com/questions/53416871/routing-to-static-html-page-in-angular-6
>
> -- 
> Mark H. Wood
> Lead Technology Analyst
>
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749 <(317)%20274-0749>
> www.ulib.iupui.edu
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-community/febed713-97c3-43c2-8513-752df6a73f61n%40googlegroups.com.

Reply via email to