# Discourse view file update does not reflect in browser

**URL:** https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836
**Category:** Development
**Created:** [Abril 12, 2017, 12:03pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836 "2017-04-12T12:03:56Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![hussain\_anver](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hussain\_anver](https://meta.discourse.org/u/hussain_anver)
#### Post date: [Abril 12, 2017, 12:03pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/1 "2017-04-12T12:03:56Z")

</div>

Hello everyone  
I have 2 questions

1. I want to change come ui elements of discourse
2. I am not able to figure out from where login modal is triggering (I want to change UI)
  - I tried to change view file
  - I tried to change .hbs file under assets
  - I tried to change js files under assets
  - I tried to change assets and js files under lib section
  - I tried to change the route file

but nothing is getting updated and also i am not able to figure out the modal popup location

any help would be appreciated

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [Abril 12, 2017, 1:31pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/2 "2017-04-12T13:31:43Z")

</div>

What do you want to change, exactly?

Most modification can be easily implemented as a CSS customization, which doesn’t require mucking with Discourse internals 🙂

---

<div class="post-metadata">

### Author: ![hussain\_anver](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hussain\_anver](https://meta.discourse.org/u/hussain_anver)
#### Post date: [Abril 12, 2017, 1:34pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/3 "2017-04-12T13:34:17Z")

</div>

i want to change some html tags and placement of login and some other pages

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [Abril 12, 2017, 1:36pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/4 "2017-04-12T13:36:40Z")

</div>

That _may_ be possible with CSS, depending on what exactly you want to do.

If you draw a mockup of what you want to have (an ugly Paint drawing based on a screenshot is fine!), one of the CSS wizards hanging around here will probably be able to help you out 🙂

---

<div class="post-metadata">

### Author: ![hussain\_anver](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hussain\_anver](https://meta.discourse.org/u/hussain_anver)
#### Post date: [Abril 12, 2017, 2:47pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/5 "2017-04-12T14:47:34Z")

</div>

ok i want to change html elements for example in category page i want to add a floating button .  
in login and signup page i need to add a logo and another image and want to also edit login function, (i want to add a rest api request to my server with login prompt)

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [Abril 12, 2017, 7:03pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/6 "2017-04-12T19:03:28Z")

</div>

Some of these changes may require adding elements to plugin outlets – here is the easiest way to do that:

> [@Using Plugin Outlet Connectors from a Theme or Plugin](https://meta.discourse.org/t/adding-plugin-outlets-using-site-customizations/32727):
>
> Discourse includes hundreds of Plugin Outlets which can be used to inject new content or replace existing contend in the Discourse UI. ‘Outlet arguments’ are made available so that content can be customized based on the context. Choosing an outlet To find the name of a plugin outlet, search Discourse core for “\<PluginOutlet”, or use the [plugin outlet locations](https://meta.discourse.org/t/plugin-outlet-locations-theme-component/100673) theme component. (e.g. topic-above-posts). Wrapper outlets Some outlets in core look like \<PluginOutlet @name="foo" /\>. These allow you…

How do you want to change login functionality, exactly?

> [@hussain\_anver](#):
>
> i want to add a rest api request to my server with login prompt

This sounds like you might be interested in SSO:

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…

---

<div class="post-metadata">

### Author: ![hussain\_anver](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hussain\_anver](https://meta.discourse.org/u/hussain_anver)
#### Post date: [Abril 13, 2017, 3:47am UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/7 "2017-04-13T03:47:33Z")

</div>

ok thankyou but i want to keep a track of users in discourse also for som reason thats why i needed to add rest api,  
and for category also i want to add a image and change placement like i want to add a floating button

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [Abril 13, 2017, 9:01am UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/8 "2017-04-13T09:01:25Z")

</div>

> [@hussain\_anver](#):
>
> and for category also i want to add a image and change placement like i want to add a floating button

Again, this sounds like you want to use CSS customizations and [plugin outlets](https://meta.discourse.org/t/adding-plugin-outlets-using-site-customizations/32727?source_topic_id=60836). Without a more detailed description or mockup of what you want to do, I’m afraid I cannot provide any additional help.

> [@hussain\_anver](#):
>
> i want to keep a track of users in discourse also for som reason thats why i needed to add rest api

While this is quite vague, it sounds like what you want to build would be insecure. Depending on what exactly you want to accomplish, [SSO](https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045?source_topic_id=60836), the [Data Explorer](https://meta.discourse.org/t/data-explorer-plugin/32566) or a custom plugin might help you, but we need a _detailed_ description of what you want to have to help you.

---

<div class="post-metadata">

### Author: ![hussain\_anver](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hussain\_anver](https://meta.discourse.org/u/hussain_anver)
#### Post date: [Abril 13, 2017, 6:02pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/9 "2017-04-13T18:02:15Z")

</div>

for category i want to add a small image before each category name for ex

- image/icon category-name topic-count  
description

for login i want to be validated the user from my server before login to discourse server  
ex: if user enters email and password i want to send it to server if user existing in my server then continue discourse logins otherwise display message as user not existing

is this details give an idea what i want to do

i have also attached a small diagram what i want

 ![](https://global.discourse-cdn.com/meta/original/3X/5/f/5fc2c6ad37ffcd98cc323ef3cdeca8473a78c331.jpeg)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [Abril 13, 2017, 6:13pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/10 "2017-04-13T18:13:39Z")

</div>

If I’m understanding correctly, having an image for a category is already possible via the category create / edit modal.

The automatic switch is a good idea, but I don’t know how code would determine between an existing account that was a typo fail and a new non existing account.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [Abril 13, 2017, 8:39pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/11 "2017-04-13T20:39:22Z")

</div>

> [@hussain\_anver](#):
>
> for login i want to be validated the user from my server before login to discourse server  
> ex: if user enters email and password i want to send it to server if user existing in my server then continue discourse logins otherwise display message as user not existing

This absolutely sounds like you want to implement SSO 🙂

---

<div class="post-metadata">

### Author: ![hussain\_anver](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hussain\_anver](https://meta.discourse.org/u/hussain_anver)
#### Post date: [Abril 16, 2017, 6:16pm UTC](https://meta.discourse.org/t/discourse-view-file-update-does-not-reflect-in-browser/60836/12 "2017-04-16T18:16:01Z")

</div>

If i want to use a rest api request from another server how can i do that with discourse,  
for example lets say if i want to add some articles from a different server which is using rest api and json to the category page in discourse
