로그인

검색

Extra Form
추천지수 5

라이믹스나 XE로 form 태그를 만들어 사용하다보면 필요하지 않는 지저분한 속성이 무조건 붙어버려서 주소가 지저분하게 생기는 불편함이 있었습니다.

 

act, mid 가 붙어버리는데요.

 

 

라이믹스 2.0.15 에 자동으로 붙는 속성을 붙지 않도록 하는 옵션이 생겼습니다.

 

https://github.com/rhymix/rhymix/pull/1779

 

<form action="/search" rx-autoform="false">
    <input type="text" name="q" value="" />
    <button type="submit">검색</button>
</form>

 

rx-autoform="false" 옵션을 추가해 주면 실제 지정한 속성만 붙게 됩니다.

 

위와 같은 경우

https://도메인/search?q=검색어 

 

이렇게 깔끔하게 주소가 완성되어집니다.

 

rx-autoform="false" 를 사용하지 못했을 과거에는

https://도메인?act=&mid=search&q=검색어 

이런식의 지저분한  url로 만들어졌었습니다.

 

 

rx-autoform="false" 덕분에 깔끔한 주소를 만들어줄 수 있게 되었네요.

Who's 꿀팁관리소장

profile
라이믹스로 커뮤니티 사이트를 운영하는 비개발자 운영자 입니다.
파트너쉽 맺으실 사이트 운영자분 환영합니다.
2 추천

라이믹스 팁(112)

라이믹스 운영과 사용에 관한 팁을 공유 합니다.

  1. read more
  2. read more
  3. Read More
  4. Read More
  5. Read More
  6. Read More
  7. Read More
  8. Read More
  9. Read More
  10. Read More
  11. Read More
  12. Read More
  13. Read More
  14. Read More
  15. Read More
  16. 여태 몰랐던 라이믹스의 $document, $oDocument 게시글 정보

    Date2021.04.29 Category기타 Views298 Votes2
    Read More
  17. input 입력창 크기가 작거나 이상한가요? css box-sizing

    Date2021.04.09 Category기타 Views210 Votes3
    Read More
  18. XE 레이아웃 메뉴에 폰트어썸이나 XEICON을 출력하기 3

    Date2020.07.20 Category기타 Views290 Votes2
    Read More
Prev 1 Next
/ 1